From 20a73a5f293492b9490f4fec3a060cc173c879f8 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Wed, 19 Jun 2013 10:41:28 +0100 Subject: Add transform_json method --- jq.pyx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'jq.pyx') diff --git a/jq.pyx b/jq.pyx index 1e1670a..6c4ea4c 100644 --- a/jq.pyx +++ b/jq.pyx @@ -41,6 +41,9 @@ class _Program(object): def transform_string(self, input): return _Result(_string_to_strings(self._program, input)) + + def transform_json(self, input): + return _Result(_string_to_strings(self._program, json.dumps(input))) class _Result(object): -- cgit v1.2.3