@@ -67,7 +67,7 @@ PyJsonic_JsonicType_init(
6767 }
6868
6969 Py_INCREF (self -> json );
70- self -> json_ascii = PyBytes_AS_STRING (PyUnicode_AsEncodedString (self -> json , "utf-8" , "asdasdads" ));
70+ self -> json_ascii = PyBytes_AS_STRING (PyUnicode_AsEncodedString (self -> json , "utf-8" , NULL ));
7171
7272 if (is_root ) {
7373 self -> node = jsonic_get_root (self -> json_ascii );
@@ -137,7 +137,7 @@ PyJsonic_JsonicType_key(
137137 if (node -> type == JSONIC_NODE_TYPE_OBJECT ) {
138138 pyNode = PyObject_CallObject (
139139 (PyObject * ) & PyJsonic_JsonicType ,
140- Py_BuildValue ("(si )" , self -> json_ascii , 0 )
140+ Py_BuildValue ("(Oi )" , self -> json , 0 )
141141 );
142142
143143 ((PyJsonic_JsonicObject * ) pyNode )-> node = node ;
@@ -147,7 +147,7 @@ PyJsonic_JsonicType_key(
147147 } else if (node -> type == JSONIC_NODE_TYPE_ARRAY ) {
148148 pyNode = PyObject_CallObject (
149149 (PyObject * ) & PyJsonic_JsonicType ,
150- Py_BuildValue ("(si )" , self -> json_ascii , 0 )
150+ Py_BuildValue ("(Oi )" , self -> json , 0 )
151151 );
152152
153153 ((PyJsonic_JsonicObject * ) pyNode )-> node = node ;
@@ -193,7 +193,7 @@ PyJsonic_JsonicType_item(
193193 if (node -> type == JSONIC_NODE_TYPE_OBJECT ) {
194194 pyNode = PyObject_CallObject (
195195 (PyObject * ) & PyJsonic_JsonicType ,
196- Py_BuildValue ("(s )" , self -> json_ascii )
196+ Py_BuildValue ("(Oi )" , self -> json , 0 )
197197 );
198198
199199 ((PyJsonic_JsonicObject * ) pyNode )-> node = node ;
@@ -202,7 +202,7 @@ PyJsonic_JsonicType_item(
202202 } else if (node -> type == JSONIC_NODE_TYPE_ARRAY ) {
203203 pyNode = PyObject_CallObject (
204204 (PyObject * ) & PyJsonic_JsonicType ,
205- Py_BuildValue ("(s )" , self -> json_ascii )
205+ Py_BuildValue ("(Oi )" , self -> json , 0 )
206206 );
207207
208208 ((PyJsonic_JsonicObject * ) pyNode )-> node = node ;
@@ -265,7 +265,7 @@ PyJsonic_JsonicType_iterItem(
265265 if (node -> type == JSONIC_NODE_TYPE_OBJECT ) {
266266 pyNode = PyObject_CallObject (
267267 (PyObject * ) & PyJsonic_JsonicType ,
268- Py_BuildValue ("(s )" , self -> json_ascii )
268+ Py_BuildValue ("(Oi )" , self -> json , 0 )
269269 );
270270
271271 ((PyJsonic_JsonicObject * ) pyNode )-> node = node ;
@@ -274,7 +274,7 @@ PyJsonic_JsonicType_iterItem(
274274 } else if (node -> type == JSONIC_NODE_TYPE_ARRAY ) {
275275 pyNode = PyObject_CallObject (
276276 (PyObject * ) & PyJsonic_JsonicType ,
277- Py_BuildValue ("(s )" , self -> json_ascii )
277+ Py_BuildValue ("(Oi )" , self -> json , 0 )
278278 );
279279
280280 ((PyJsonic_JsonicObject * ) pyNode )-> node = node ;
@@ -323,7 +323,7 @@ PyJsonic_JsonicType_iterKey(
323323 if (node -> type == JSONIC_NODE_TYPE_OBJECT ) {
324324 pyNode = PyObject_CallObject (
325325 (PyObject * ) & PyJsonic_JsonicType ,
326- Py_BuildValue ("(s )" , self -> json_ascii )
326+ Py_BuildValue ("(Oi )" , self -> json , 0 )
327327 );
328328
329329 ((PyJsonic_JsonicObject * ) pyNode )-> node = node ;
@@ -332,7 +332,7 @@ PyJsonic_JsonicType_iterKey(
332332 } else if (node -> type == JSONIC_NODE_TYPE_ARRAY ) {
333333 pyNode = PyObject_CallObject (
334334 (PyObject * ) & PyJsonic_JsonicType ,
335- Py_BuildValue ("(s )" , self -> json_ascii )
335+ Py_BuildValue ("(Oi )" , self -> json , 0 )
336336 );
337337
338338 ((PyJsonic_JsonicObject * ) pyNode )-> node = node ;
0 commit comments