diff options
| author | Joey Adams | 2010-06-21 23:52:23 +0000 |
|---|---|---|
| committer | Joey Adams | 2010-06-21 23:52:23 +0000 |
| commit | b153d76442ba1ef1237c4cc36f491b3aff7b8510 (patch) | |
| tree | d3d4f0cd8d6d2be370a98b0d13e80dafc6f60bb5 /jsonpath.c | |
| parent | f1851e0b1fd7f002b4033d9717ab9a704d402d48 (diff) | |
* Made it so json_path preserves original text.
* Removed the global variable json_escape_unicode and added a parameter for it
to the json_encode and json_encode_string C functions.
Diffstat (limited to 'jsonpath.c')
| -rw-r--r-- | jsonpath.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -113,7 +113,7 @@ char *jp_show(JSONPath *jp) appendStringInfo(string, "%s[%ld]", rd ? ".." : "", elem->data.index); break; case JP_KEY_SUBSCRIPT: - tmp = json_encode_string(elem->data.key.ptr, elem->data.key.length, '"'); + tmp = json_encode_string(elem->data.key.ptr, elem->data.key.length, '"', false); Assert(tmp != NULL); appendStringInfo(string, "%s[%s]", rd ? ".." : "", tmp); pfree(tmp); |
