Example: change the type of the json string from char* to char[] because it cause issue in memory protected environments.

This commit is contained in:
Benoit Blanchon
2014-02-26 21:38:58 +01:00
parent 53466a2fb2
commit 006fc13141

View File

@ -7,7 +7,7 @@
void ParseAnObject()
{
char* json = "{\"Name\":\"Blanchon\",\"Skills\":[\"C\",\"C++\",\"C#\"],\"Age\":32,\"Online\":true}";
char[] json = "{\"Name\":\"Blanchon\",\"Skills\":[\"C\",\"C++\",\"C#\"],\"Age\":32,\"Online\":true}";
JsonParser<32> parser;
@ -47,7 +47,7 @@ void ParseAnObject()
void ParseAnArray()
{
char* json = "[[1.2,3.4],[5.6,7.8]]";
char[] json = "[[1.2,3.4],[5.6,7.8]]";
JsonParser<32> parser;