Created
September 22, 2014 07:05
-
-
Save sergeant-wizard/cacd2c30bee503835dc9 to your computer and use it in GitHub Desktop.
json memory usage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "dist/json/json.h" | |
int main(void){ | |
Json::Reader reader; | |
Json::Value rootJson; | |
bool parseResult = reader.parse(" \ | |
\"areas\" : [ \ | |
{\ | |
\"background_image\" : \"background_cave\",\ | |
\"description\" : \"desc\",\ | |
\"end_at\" : 1585699200,\ | |
\"id\" : 1,\ | |
\"name\" : \"チュートリアル\",\ | |
\"prev_area_id\" : null,\ | |
\"quests\" : [\ | |
{\ | |
\"id\" : 111,\ | |
\"name\" : \"quest_1_1\",\ | |
\"prev_quest_id\" : null\ | |
},\ | |
{\ | |
\"id\" : 112,\ | |
\"name\" : \"quest_1_2\",\ | |
\"prev_quest_id\" : null\ | |
},\ | |
{\ | |
\"id\" : 113,\ | |
\"name\" : \"quest_1_3\",\ | |
\"prev_quest_id\" : null\ | |
}\ | |
],\ | |
\"start_at\" : 1396310400,\ | |
\"wday\" : [],\ | |
\"wday_end_at\" : 946771140,\ | |
\"wday_start_at\" : 946684860\ | |
}\ | |
]\ | |
", rootJson); | |
while (1){ | |
; | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
100KB超えてないから気にしないことにしようかw