json parser frozen

87 views
Skip to first unread message

fs

unread,
Oct 22, 2015, 8:02:02 AM10/22/15
to mongoose-users
Hallo,

how to get elements of an json array without keys using frozen.h ( I know it is part of mongoose nowadays.)

const char *json = "[1,2,3,4,5,6,7]"; //valid Json

struct json_token *arr, *tok;
arr
= parse_json2(json, strlen(json));
tok
= find_json_token(arr, "??????");



// same for char *
// const char *json1 = "[{test:1},{test:2}]"; //valid Json



Regards

Sergey Lyubka

unread,
Oct 31, 2015, 3:27:31 AM10/31/15
to mongoose-users
Hi,
at the moment there is no suitable API for that.
Do you have a suggestion for the API ?

Regards,


--
You received this message because you are subscribed to the Google Groups "mongoose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongoose-user...@googlegroups.com.
To post to this group, send email to mongoos...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongoose-users.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages