diff options
Diffstat (limited to 'jq.pyx')
| -rw-r--r-- | jq.pyx | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,5 @@ +import json + cdef extern from "jv.h": ctypedef struct jv: pass @@ -55,6 +57,10 @@ def string_to_string(char* program, char* input): return "".join(results) +def string_to_json(char* program, char* input): + return json.loads(string_to_string(program, input)) + + cdef process(jq_state *jq, jv value): cdef int jq_flags = 0 |
