Difference between revisions of "Json parser and writer"

From VCMI Project Wiki
Jump to: navigation, search
(Replaced content with "{{Template:MovedToWebpage|https://vcmi.eu/developers/Code_Structure/#json-parser-and-writer}}")
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Capable of error checking and basic error recovery. Also have optional schema validation. Located at lib/JsonNode.h.
+
{{Template:MovedToWebpage|https://vcmi.eu/developers/Code_Structure/#json-parser-and-writer}}
Currently supports only local encoding - no conversion from unicode.
 
 
 
Main class JsonNode represents one "node" from Json file (array, string, etc.).
 
Basic usage:
 
<pre>
 
const JsonNode node("some_config.json");
 
std::string value = node["value"].String();
 
</pre>
 
 
 
===File formats===
 
*[[Creature Format]]
 
*[[Bonus Format]]
 
*[[Town Format]]
 

Latest revision as of 16:30, 16 July 2024

Logo256.png    Page moved to VCMI-Homepage