Skip to content

wangke1020/hijson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

hijson

It is based on SuperEasyJSON inspired by msgpack.

It can simply convert a vector or a map to Json Value.

	using test_map_t = unordered_map<string, vector<string>>;
	test_map_t map;
	map["v1"] = v1;
	map["v2"] = v2;
	map["v3"] = v3;
	Value mapValue = Convert(map);
	cout << Serialize(mapValue) << endl;
	test_map_t new_map;
	As<test_map_t>(mapValue, new_map);
	//adaptor macro
	class B
	{
	public:
		B() {};
		string s;
		int i;
		bool b;
		double d;
	public:
		HIJSON_DEFINE(s, i, b, d)
	};

About

super easy json converter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages