Skip to content
/ json-c Public

JSON streaming parser reader and writer

License

Notifications You must be signed in to change notification settings

paiv/json-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON

Streaming reader and writer.

standwithukraine

Features:

  • FILE-based streaming parser
  • No internal heap allocations

Usage:

#define PAIV_JSON_IMPLEMENTATION // import implementation
#include "paiv_json.h"
  • Parser interface: json_reader_* functions
  • Writer interface: json_writer_* functions

Refer to examples for a sample code.

Basic parser structure:

json_reader_init
json_reader_open_object
  json_reader_read_object until JsonError_not_found
  json_reader_read_ [string, number*, bool, null]