Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Alay Posted March 17, 2018 Posted March 17, 2018 When doing member queries, the CustomFields response property seems to be improper JSON. API Documentation says it should be returned as an Array of objects, however both the customFields property and the Fields property seems to be coming back as an object with numeric properties rather than array indices. Is this a known issue? Any work around?
bfarber Posted March 19, 2018 Posted March 19, 2018 Are you unable to use the data in its current form? I can review the REST API documentation to ensure it's accurate, but in the mean time let us know if you're having trouble with the data returned.
Aiwa Posted March 19, 2018 Posted March 19, 2018 To be fair, that looks like it's actually grouped correctly based on group / field group_x, field_x where X is the array index for the group or field within the group. I've not looked at the code for the REST API, but that seems the most logical based on your screenshot. While it's not an object, it appears to be a meaningful structure that aligns with the core framework, if you know that's what you're getting.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.