Attribute Nesting Not Working As described
-
I am looking to submit the following
"Phone": [ { "@attributes": { "PhoneType": "personal" }, "PhoneNumber": "999-999-9999" }, { "@attributes": { "PhoneType": "cell" }, "PhoneNumber": "777-777-7777" }, { "@attributes": { "PhoneType": "office" }, "PhoneNumber": "111-111-1111" } ]But when I actually do it I get:
"Phone":{ "@attributes":"personal, cell, office", "PhoneNumber":"999-999-9999, 777-777-7777, 111-111-1111" },That resulted when using the default “, ” separator.
I then tried (without the quotes): “[]”, “[] “, “[#] “, and “[#]” and none worked. Sometimes it would just add [] as if it were the comma, most of the time it just returned nothing in the post body (not valid JSON.)
In my case, I really only need to submit a phone number for Personal, and I can leave cell and office blank, but in the example above I added phone numbers to make it easier to follow.
Either way works (with blank cell and office numbers, or filler cell and office numbers).
Any help would be appreciated IMMENSELY!
The topic ‘Attribute Nesting Not Working As described’ is closed to new replies.