From 34fed9164a377adff9ddca4cb080baec1c132946 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?O=C4=9Fuzhan=20Ero=C4=9Flu?= Date: Thu, 10 Oct 2019 07:09:11 +0100 Subject: [PATCH] Fix README.md --- README.md | 9 ++++++--- python-jsonic.h | 2 +- setup.cfg | 2 +- setup.py | 2 +- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 104c52c..7a8188a 100644 --- a/README.md +++ b/README.md @@ -59,8 +59,11 @@ Returns JSON root's value if `root.type` is not an array or object. Otherwise it root = jsonic.Jsonic("1234") print(root.root()) # 1234 -root = jsonic.Jsonic("foo") -print(root.root()) # "foo" +root = jsonic.Jsonic("\"foo\"") +print(root.root()) # foo + +root = jsonic.Jsonic("true") +print(root.root()) # True root = jsonic.Jsonic("null") print(root.root()) # jsonic.Null @@ -99,7 +102,7 @@ print(array.iterItem()) # 1 #### Method: iterKey(key) Iterates object key from last iterated object. ```python -root = jsonic.Jsonic("{a: 1, b: 2, c: 3, d: 4}") +root = jsonic.Jsonic("{\"a\": 1, \"b\": 2, \"c\": 3, \"d\": 4}") print(array.iterKey("a")) # 1 print(array.iterKey("b")) # 2 print(array.iterKey("c")) # 3 diff --git a/python-jsonic.h b/python-jsonic.h index 46e4ad2..de9e9f5 100644 --- a/python-jsonic.h +++ b/python-jsonic.h @@ -16,7 +16,7 @@ #include "lib/jsonic/jsonic.h" -#define PYJSONIC_VERSION "1.4" +#define PYJSONIC_VERSION "1.5" typedef struct { PyObject_HEAD diff --git a/setup.cfg b/setup.cfg index 9b76860..646294e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = pyjsonic -version = 1.4 +version = 1.5 author = Oğuzhan Eroğlu author-email = rohanrhu2@gmail.com home-page = https://github.com/rohanrhu/python-jsonic diff --git a/setup.py b/setup.py index a848a92..5a06be4 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ setup( name = "pyjsonic", - version = "1.4", + version = "1.5", description = "Python bindings for Jsonic JSON reader library.", long_description = long_description, long_description_content_type='text/markdown',