LibDocument

image-alt

Document and Trie Processing.


json.cpp File Reference

Version: 0.1.1

JSON dot cpp. More…

#include <gtest/gtest.h>
#include "json.h"

Functions

 TEST (ldoc_json, empty_json)
 
 TEST (ldoc_json, small_json)
 
 TEST (ldoc_json, empty_list_json)
 
 TEST (ldoc_json, ldj)
 

Variables

const char * ldoc_json_small = "{ \"key1\" : 123, \"key2\" : \"Hello\\n\", \"key3\" : [ \"val3.1\", 3.141, null, true, false, [[ { \"nested\" : true } ]] ] }"
 
const char * ldoc_json_small_ref = "{\"key1\":123,\"key2\":\"Hello\\n\",\"key3\":[\"val3.1\",3.141, null, true, false,[[{\"nested\":true}]]]}"
 
const char * ldoc_json_empty_list = "{ \"key1\" : [] }"
 
const char * ldoc_json_empty_list_ref = "{\"key1\":[]}"
 
const char * ldoc_ldj = "{\"key1\":123}\n{\"key2\":true}\n{\"key3\":[1,2,3]}"
 

Detailed Description

JSON dot cpp.

Function Documentation

TEST (ldoc_json , empty_json )

TEST (ldoc_json , small_json )

TEST (ldoc_json , empty_list_json )

TEST (ldoc_json , ldj )

Variable Documentation

const char* ldoc_json_empty_list = "{ \"key1\" : [] }"

const char* ldoc_json_empty_list_ref = "{\"key1\":[]}"

const char* ldoc_json_small = "{ \"key1\" : 123, \"key2\" : \"Hello\\n\", \"key3\" : [ \"val3.1\", 3.141, null, true, false, [[ { \"nested\" : true } ]] ] }"

const char* ldoc_json_small_ref = "{\"key1\":123,\"key2\":\"Hello\\n\",\"key3\":[\"val3.1\",3.141, null, true, false,[[{\"nested\":true}]]]}"

const char* ldoc_ldj = "{\"key1\":123}\n{\"key2\":true}\n{\"key3\":[1,2,3]}"