SparkJson
SparkJson copied to clipboard
JSON library Ported from @bblanchon for Spark Core
I'm trying to use this lib with a photon but I get this error. > lib/SparkJson/src/./DynamicJsonBuffer.h: In destructor 'ArduinoJson::DynamicJsonBuffer::~DynamicJsonBuffer()': lib/SparkJson/src/./DynamicJsonBuffer.h:20:33: warning: deleting object of polymorphic class type 'ArduinoJson::DynamicJsonBuffer' which has...
``` char QC_JSON[1024] = ; DynamicJsonBuffer jsonBuffer; JsonObject& root = jsonBuffer.parseObject(QC_JSON); if(root.success()) { Serial.print("QC:");Serial.println(sizeof(QC_JSON)); int lab = root["lab"]; Serial.print("Json:");Serial.println(lab); memset(QC_JSON, 0, sizeof(QC_JSON)); root.prettyPrintTo(Serial); root.add("lab",int(3)); root.printTo(QC_JSON,sizeof(QC_JSON)); String buffer = String(QC_JSON); Serial.println(buffer);...
I'm using this on the Electron and I need a fairly hefty buffer of size 8000. My understanding is that using "StaticJsonBuffer jsonBuffer" in a function allocates the buffer on...
I just found an issue in my latest Photon firmware, where the following is returning false for JSON value true. bool b = jsonRoot["boolean_field"]; This has always worked for me,...
As tested with the JSON string in this post https://community.particle.io/t/parsing-json-help/29137/5 it seems that the parser starts failing as soon a 16th root element is present in the string. Tested with...
On the Particle IDE, it lists this library as broken on all platforms. When I try to compile through the IDE, it seems to throw errors associated with type casts....