4 ms·
Hi, author here, I just added the JSON macro to omit the quotation escaping around object keys and strings: without JSON macro: char* j = "{ \"key\": [\"value
by xnacly 2y ago
Hi, author here, I just added the JSON macro to omit the quotation escaping around object keys and strings:
without JSON macro:
char* j = "{ \"key\": [\"value1\", \"value2\"]}";
with JSON macro:
char *j = JSON({ "key": ["value1", "value2"]});
But yes of course, due to the stringify no C values can be embedded - i wouldnt even know how one would solve this with a macro, but maybe someone has an idea and can comment on that.