Add basic JSON operations as header only library
authorSangwan Kwon <sangwan.kwon@samsung.com>
Tue, 12 May 2020 06:21:58 +0000 (15:21 +0900)
committer권상완/Security 2Lab(SR)/Engineer/삼성전자 <sangwan.kwon@samsung.com>
Mon, 18 May 2020 00:52:02 +0000 (09:52 +0900)
commit85bf7f747481a148ca2fcbb7a830871411aee3ff
tree0e0b887308181f154075dcc0da82d9e50d995a0d
parentda2446d006ed6aec3a8ce131b672bbeeb5c24cdc
Add basic JSON operations as header only library

Usable JSON header-only library.
  - Applied design pattern: Composite pattern
    - Component structure: Value
    - Leaf structure: Int, String (To be added: Bool, Null)
    - Composite structure: Object (To be added: Array)

Usage:
    // Set json object
    Json json;
    json["name"] = "sangwan";
    json["age"] = 99;

    // Get json value
    std::string name = json["name"];
    int age = json["age"];

    // Serialize json value
    std::string serialized = json.serialize();

Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
src/vist/CMakeLists.txt
src/vist/json/CMakeLists.txt [new file with mode: 0644]
src/vist/json/json.hpp [new file with mode: 0644]
src/vist/json/object.hpp [new file with mode: 0644]
src/vist/json/tests/json.cpp [new file with mode: 0644]
src/vist/json/value.hpp [new file with mode: 0644]