Skip to content

Commit fd9d03c

Browse files
authored
Merge pull request #27 from bentsku/master
Updated README.rst with example of no_escape flag
2 parents 4ad320f + 2685886 commit fd9d03c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@ Usage example
7575
jp.jsonset('baz', Path.rootPath(), 'qaz')
7676
jp.execute()
7777
78+
# If you use non-ascii character in your JSON data, you can add the no_escape flag to JSON.GET command
79+
obj_non_ascii = {
80+
'non_ascii_string': 'hyvää'
81+
}
82+
rj.jsonset('non-ascii', Path.rootPath(), obj_non_ascii)
83+
print '{} is a non-ascii string'.format(rj.jsonget('non-ascii', Path('.non_ascii_string'), no_escape=True))
7884
7985
Encoding/Decoding
8086
-----------------

0 commit comments

Comments
 (0)