Skip to content

Commit

Permalink
Fix README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rohanrhu committed Oct 10, 2019
1 parent a1cdbba commit 34fed91
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion python-jsonic.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#include "lib/jsonic/jsonic.h"

#define PYJSONIC_VERSION "1.4"
#define PYJSONIC_VERSION "1.5"

typedef struct {
PyObject_HEAD
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 34fed91

Please sign in to comment.