Motivated by an educational purpose, I decided to create a C implementation of a JSON parser (https://www.json.org/json-en.html)
The latest version of the library gives you the possibility to
- Parse an serialized JSON array (with
json_array_ttype) - Parse an serialized JSON object (with
json_object_ttype) - Get any element with key correspondance using macros (
J_GET_INT,J_GET_STR,J_GET_BOOL,J_GET_NULL,J_GET_OBJ,J_GET_ARRAY) - Error handling when the JSON string to be parsed is corrupted
In order to install the library globally, clone the repository:
$ git clone https://github.com/pr0m3th3usEx/CJsonParser.git
And run the following command:
$ sudo make install
The library gives 2 header files:
cjson/json_parser.h: All JSON parsing toolscjson/list.h: Linked list operations
TODO
The project is under MIT License.
@Pr0m3th3usEx - Thomas Michel