Skip to content

Latest commit

 

History

History
22 lines (20 loc) · 337 Bytes

README.md

File metadata and controls

22 lines (20 loc) · 337 Bytes

libjson

Simple cpp json library

Usage:

	json::Parse p;
	json::Value* v = p.read(message);
	if( v == NULL )
	{
		fprintf(stderr,"Failed to read responce.\n");
		return;
	}
	json::Object* o = dynamic_cast<json::Object*>(v);
	if( o == NULL )
	{
		delete v;
		fprintf(stderr,"Invalid object.\n");
		return;
	}
	delete v;