Jump to content

CustomFields - Json is an object, not an array?


Alay

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.

image.png.9718d321bfb4244ada9d1ec9fd51b705.png

 

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

Archived

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

  • Recently Browsing   0 members

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