Skip to content
Snippets Groups Projects
Commit a341976f authored by Sergey Linev's avatar Sergey Linev
Browse files

json: let configure map->object conversion with compress parameter

If doing direct conversion of map -> json, it is not possible 
to specify "JSON_object" tag in class comments. Therefore now one can
use compact parameter 5 for that:

std::map<string,int> obj;
obj["name"]=7;
auto json = TBufferJSON::ToJSON(&obj,5);
parent f52e2d50
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment