Skip to content

Commit 34fed91

Browse files
committed
Fix README.md
1 parent a1cdbba commit 34fed91

4 files changed

Lines changed: 9 additions & 6 deletions

File tree

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,11 @@ Returns JSON root's value if `root.type` is not an array or object. Otherwise it
5959
root = jsonic.Jsonic("1234")
6060
print(root.root()) # 1234
6161

62-
root = jsonic.Jsonic("foo")
63-
print(root.root()) # "foo"
62+
root = jsonic.Jsonic("\"foo\"")
63+
print(root.root()) # foo
64+
65+
root = jsonic.Jsonic("true")
66+
print(root.root()) # True
6467

6568
root = jsonic.Jsonic("null")
6669
print(root.root()) # jsonic.Null
@@ -99,7 +102,7 @@ print(array.iterItem()) # 1
99102
#### Method: iterKey(key)
100103
Iterates object key from last iterated object.
101104
```python
102-
root = jsonic.Jsonic("{a: 1, b: 2, c: 3, d: 4}")
105+
root = jsonic.Jsonic("{\"a\": 1, \"b\": 2, \"c\": 3, \"d\": 4}")
103106
print(array.iterKey("a")) # 1
104107
print(array.iterKey("b")) # 2
105108
print(array.iterKey("c")) # 3

python-jsonic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
#include "lib/jsonic/jsonic.h"
1818

19-
#define PYJSONIC_VERSION "1.4"
19+
#define PYJSONIC_VERSION "1.5"
2020

2121
typedef struct {
2222
PyObject_HEAD

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = pyjsonic
3-
version = 1.4
3+
version = 1.5
44
author = Oğuzhan Eroğlu
55
author-email = [email protected]
66
home-page = https://github.com/rohanrhu/python-jsonic

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
setup(
2727
name = "pyjsonic",
28-
version = "1.4",
28+
version = "1.5",
2929
description = "Python bindings for Jsonic JSON reader library.",
3030
long_description = long_description,
3131
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)