Hey… This may be crazy but does something look wrong with this?
//tried both var & string
var jsonString = input->readEntireStreamAsString();
var parsedJson = JSON::parse(jsonString);
//this prints the formatted json fine
DBG(JSON::toString(parsedJson));
//this keeps return nullptr
if(DynamicObject* obj = parsedJson.getDynamicObject()) {
//never makes it here
DBG(obj->getProperties().size());
}
I think this is similar to a post we recently had: JUCE’s Javascript is slightly different to EMCA in that arrays aren’t objects - they are just arrays. So