Skip to content

pejman-hkh/c-json-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

c-json-parser

C json parser

Sample Code

char *str1 = fileGetContent("test.txt");

JSON(json, str1);

dump1( json );

json_array *object = JSONGET( json, "object");

JSONFREE(json);
free( str1 );

Sample dump output

[boolean : true]
[color : #82b92c]
[null : null]
[number : 123]
[object : 
[a : b]
[c : d]
[e : f]]
[string : HelloWorld]
[array : 
[0 : 1]
[1 : 2]
[2 : 3]]
[boolean1 : true]
[color1 : #82b92c]
[null1 : null]
[number1 : 123]
[object1 : 
[a : b]
[c : d]
[e : f]]
[string1 : HelloWorld]
[array1 : 
[0 : 1]
[1 : 2]
[2 : 3]]

Releases

No releases published

Packages

No packages published