Anonymous
Not applicable
Dec 25, 2016
10:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 25, 2016
10:10 PM
Hi
I only see JSON parser API in SDK (ver 4.0.1) without add JSON object related APIs.
Is there any APIs can help to add(create) a JSON object? I think if yes that will be easier to programming
Thanks,
- Tags:
- json
1 Reply
Anonymous
Not applicable
Jan 04, 2017
04:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 04, 2017
04:18 AM
Hello GasparLin,
There is no direct API to create JSON_OBJECT. You can use the following structure for preparing the object
static wiced_json_object_t json_object =
{
.object_string = NULL,
.object_string_length = 0,
.value_type = UNKNOWN_JSON_TYPE,
.value = NULL,
.value_length = 0,
.parent_object = NULL
};
Please refer to JSON.C file in the SDK.
Best Regards,
Ramesh Mylavarapu