Skip to content

Commit c947fac

Browse files
committed
json type
1 parent 4dc8986 commit c947fac

4 files changed

Lines changed: 9 additions & 3 deletions

File tree

python-jsonic.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ PyJsonic_JsonicType_item(
197197
);
198198

199199
((PyJsonic_JsonicObject *) pyNode)->node = node;
200+
((PyJsonic_JsonicObject *) pyNode)->json_type = node->type;
200201

201202
return pyNode;
202203
} else if (node->type == JSONIC_NODE_TYPE_ARRAY) {
@@ -206,6 +207,7 @@ PyJsonic_JsonicType_item(
206207
);
207208

208209
((PyJsonic_JsonicObject *) pyNode)->node = node;
210+
((PyJsonic_JsonicObject *) pyNode)->json_type = node->type;
209211

210212
return pyNode;
211213
} else if (node->type == JSONIC_NODE_TYPE_STRING) {
@@ -269,6 +271,7 @@ PyJsonic_JsonicType_iterItem(
269271
);
270272

271273
((PyJsonic_JsonicObject *) pyNode)->node = node;
274+
((PyJsonic_JsonicObject *) pyNode)->json_type = node->type;
272275

273276
return pyNode;
274277
} else if (node->type == JSONIC_NODE_TYPE_ARRAY) {
@@ -278,6 +281,7 @@ PyJsonic_JsonicType_iterItem(
278281
);
279282

280283
((PyJsonic_JsonicObject *) pyNode)->node = node;
284+
((PyJsonic_JsonicObject *) pyNode)->json_type = node->type;
281285

282286
return pyNode;
283287
} else if (node->type == JSONIC_NODE_TYPE_STRING) {
@@ -327,6 +331,7 @@ PyJsonic_JsonicType_iterKey(
327331
);
328332

329333
((PyJsonic_JsonicObject *) pyNode)->node = node;
334+
((PyJsonic_JsonicObject *) pyNode)->json_type = node->type;
330335

331336
return pyNode;
332337
} else if (node->type == JSONIC_NODE_TYPE_ARRAY) {
@@ -336,6 +341,7 @@ PyJsonic_JsonicType_iterKey(
336341
);
337342

338343
((PyJsonic_JsonicObject *) pyNode)->node = node;
344+
((PyJsonic_JsonicObject *) pyNode)->json_type = node->type;
339345

340346
return pyNode;
341347
} else if (node->type == JSONIC_NODE_TYPE_STRING) {

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