Skip to content

ospace/jsonlite_cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsonlite_cpp

Simple lite json stream for c++

##Simple example

//header file
#include <json_stream.h>

//input a string
jsonlite::JsonStream jstm;
jstm << "{ \"key\":100 }";

//parser
jsonlite::Json json;
jstm >> json;

std::cout << "key: " << json["key"].integer() << std::endl;

//printer
jstm.str(""); //clear internal buffer
jstm << json;

//output a string
std::cout << jstm.str() << std::endl;

About

Simple lite json reader and writer for c++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages