Jump to content

CustomFields - Json is an object, not an array?


Recommended Posts

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?  

Link to comment
Share on other sites

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.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...