summaryrefslogtreecommitdiff
path: root/jq.pyx
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-03-16 13:17:47 +0000
committerMichael Williamson <mike@zwobble.org>2023-03-16 13:30:29 +0000
commit7a2648dfe150f532d1690fa8fbaf588789afaa84 (patch)
treed299bf6fc98e86b841c2cce769b996f5abe1ab3e /jq.pyx
parent125196c17a00311ce132148369982795e2d229ce (diff)
Handle null bytes in object keys
Diffstat (limited to 'jq.pyx')
-rw-r--r--jq.pyx2
1 files changed, 1 insertions, 1 deletions
diff --git a/jq.pyx b/jq.pyx
index 9cb8807..293ea76 100644
--- a/jq.pyx
+++ b/jq.pyx
@@ -109,7 +109,7 @@ cdef object _jv_to_python(jv value):
property_key = jv_object_iter_key(value, idx)
property_value = jv_object_iter_value(value, idx)
try:
- python_value[jv_string_value(property_key).decode("utf-8")] = \
+ python_value[jv_string_to_py_string(property_key)] = \
_jv_to_python(property_value)
finally:
jv_free(property_key)