Forum Discussion
aukev
7 years agoHelper III
Nested json in a paginated API call
I have this request for an api. It's json. Works fine but the result of this are four records. One for each page. The problem is it's a nested JSON that looks more or less like this: {
"12":...
tonmcg
7 years agoResolver II
Can you provide an example of the JSON that's returned from one of your calls? And at which query step do you get that error?
aukev
7 years agoHelper III
Hi tonmcg . Thanks again for your help. The Json response for this request normally looks like this:
{
"2": {
"entity_id": "2",
"website_id": "1",
"email": "[email protected]",
"group_id": "1",
"created_at": "2012-03-22 14:15:54",
"disable_auto_group_change": "1",
"firstname": "john",
"lastname": "Doe",
"created_in": "Admin",
"prefix": null,
"suffix": null,
"taxvat": null,
"dob": "2001-01-03 00:00:00",
"reward_update_notification": "1",
"reward_warning_notification": "1",
"gender": "1"
},
"4": {
"entity_id": "4",
"website_id": "1",
"email": "[email protected]",
"group_id": "1",
"created_at": "2013-03-28 18:59:41",
"disable_auto_group_change": "0",
"firstname": "Earl",
"lastname": "Hickey",
"created_in": "Admin",
"prefix": null,
"suffix": null,
"taxvat": null,
"dob": "2012-03-28 13:54:04",
"reward_update_notification": "1",
"reward_warning_notification": "1",
"gender": "1"
}The error happens at the Pagination step. When I click on show error it directs me there.
This is what I see: