You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the GetData method translates JSON to key-value pairs when posting to the OC server, it seems that there are some details missing.
an object such as:
{ people: [], animals: ['cat', 'dog'] .... }
is translated to something like:
data.animals[] = 'cat'
data.animals[] = 'dog'
Notice that there are no entries for people because there are no values in that array.
When serialised back to JSON, the people property is undefined. This can be handled by the client, but it is not an ideal side effect.
The text was updated successfully, but these errors were encountered:
Since the GetData method translates JSON to key-value pairs when posting to the OC server, it seems that there are some details missing.
an object such as:
is translated to something like:
Notice that there are no entries for people because there are no values in that array.
When serialised back to JSON, the people property is undefined. This can be handled by the client, but it is not an ideal side effect.
The text was updated successfully, but these errors were encountered: