Skip to content

Crucinio/MyJson

Repository files navigation

MyJson (3)

A tool for working with JSON files in cpp projects.

About

  • Able to read string, numeric and boolean types, as well as corresponding arrays and nested objects.
  • Reads 5MB of JSON data in about 6 seconds and 512KB in about 330 milliseconds

Install

Download Json.h, Json.cpp and include the header in the files you need. Tested only on MSVC compiler

Usage

  • Initialising object in different ways: image image image

  • Accessing values image

  • Setting new value with premade pair: image

  • Using setter with string source as argument: image

  • to_string, write, read_and_overwrite methods. image

  • clear, empty and erase(by key) methods are implemented as well.

  • Unit tests results with different data sizes:
    image

Future features:

  • No plans