--- libelwix/example/test_json.c 2025/08/25 10:05:52 1.5.4.1 +++ libelwix/example/test_json.c 2026/03/31 15:25:22 1.6.20.1 @@ -80,7 +80,7 @@ run_simple(json_t *json) tok = json_findbykey(teststr, "groups", J_UNDEF, toks, ret); if (tok) { - str = json_token2str(teststr, tok); + str = json_token2rstr(teststr, tok); arr = json_token2vars(teststr, tok); printf("Key=\"groups\" data parent=%ld idx=%ld size=%ld type=%d %s\n", tok->tok_parent, tok->tok_idx, tok->tok_size, tok->tok_type, str); e_free(str); @@ -112,7 +112,7 @@ run_simple(json_t *json) tok = json_findbykey(teststr, "testend", J_UNDEF, toks, ret); if (tok) { - str = json_token2str(teststr, tok); + str = json_token2rstr(teststr, tok); arr = json_token2vars(teststr, tok); printf("Key=\"testend\" data parent=%ld idx=%ld size=%ld type=%d %s\n", tok->tok_parent, tok->tok_idx, tok->tok_size, tok->tok_type, str); e_free(str); @@ -301,7 +301,7 @@ run_stdin(json_t *json) tok = json_findbykey(szJSON, "aaa", J_STRING, toks, ret); if (tok) { - str = json_token2str(szJSON, tok); + str = json_token2rstr(szJSON, tok); if (str) { printf("str=%s\n", str); json_freestr(str);