Skip to content

Commit f14413b

Browse files
committed
Fix README.md
1 parent cec1b3d commit f14413b

4 files changed

Lines changed: 15 additions & 10 deletions

File tree

README.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,19 +88,24 @@ Iterates array item from last iterated item times index.
8888

8989
```python
9090
root = jsonic.Jsonic("[1, 2, 3, 4]")
91-
print(array.iter()) # 1
92-
print(array.iter()) # 2
93-
print(array.iter(1)) # 4
91+
print(array.iterItem()) # 1
92+
print(array.iterItem()) # 2
93+
print(array.iterItem(1)) # 4
94+
print(array.iterItem()) # None
95+
array.reset()
96+
print(array.iterItem()) # 1
9497
```
9598

9699
#### Method: iterKey(key)
97100
Iterates object key from last iterated object.
98101
```python
99102
root = jsonic.Jsonic("{a: 1, b: 2, c: 3, d: 4}")
100-
print(array.iter("a")) # "a"
101-
print(array.iter("b")) # "b"
102-
print(array.iter("c")) # "c"
103-
print(array.iter("b")) # None
103+
print(array.iterKey("a")) # 1
104+
print(array.iterKey("b")) # 2
105+
print(array.iterKey("c")) # 3
106+
print(array.iterKey("b")) # None
107+
array.reset()
108+
print(array.iterKey("b")) # 2
104109
```
105110

106111
#### Method: reset()

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.2"
19+
#define PYJSONIC_VERSION "1.3"
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.2
3+
version = 1.3
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.2",
28+
version = "1.3",
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)