akheron / jansson

C library for encoding, decoding and manipulating JSON data
http://www.digip.org/jansson/
Other
3.05k stars 808 forks source link

Has anyone encountered similar problems (json_pack( s* ) error)? #632

Closed yanxi00 closed 1 year ago

yanxi00 commented 1 year ago

version:2.13.1

code: json_auto_t json = json_pack_ex(&json_err, 0, "{s:s}", "test", "test"); if (NULL == json) { printf("json_pack error, source:%s, error:%s %d %d %d.\n", json_err.source, json_err.text, json_err.line, json_err.column, json_err.position); return; }

print: json_pack error, source:, error:Expected format 's', got '*' 1 5 5.