Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 596 Bytes

readme.md

File metadata and controls

28 lines (22 loc) · 596 Bytes

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]