How can i get the attributes of this payload?, one, two, three are not static attributes, they could be whatever, now i want to get the "one": "1"
, "two": "2"
,...
{
"section": "factor",
"data": {
"one": "1",
"two": "2",
"three": "3"
}
}
my attempt is params[:data][1], but how to know if there is the element [1]...
i need to iterate, how to get the key and value