Go Down

Topic: JSON Library? (Read 29669 times) previous topic - next topic

Bertie64

@PaulS - Thank you!

I spent an hour or two during over the various files without spotting that.  Amazing how much easier it is to find something when you now what you are looking for...

PaulS

#31
Jun 08, 2016, 06:33 pm Last Edit: Jun 08, 2016, 06:33 pm by PaulS
I've spent the last two weeks trying to collect data from a JSON parser, in a meaningful way, for several different kinds of JSON files. So, I had a fair idea about the types involved, and the inheritance, so it wasn't too difficult to find that the expected class had the expected method.
The art of getting good answers lies in asking good questions.

mars000

hi
the arduino json library is unable to parse the following file. I have validated online that it is a valid json file...any clues as to why it might not be parsing ? it simply crashes my WEMOS MINI

here is my serial output:


{
    "fileversion": 1,
    "date_created": "07April2017",
    "latest_build": "mains.bin",
    "mac_address": "08:dd:0f:1c:2a",
    "data_activated": "TBC",
    "auth_code": "shjkhsjk839903klkkl",
    "blynk_server": "blynk.xxxx.com",
    "hardware" : "wemosmini",

    "sv": {
        "appliance": "mains",
        "flow_sensor": "true",
        "water_sensor": "true",
        "valve": "true",
        "number_valves": 1,
        "type" : "master"
    },
   
    "children": [
        {
            "child" : 1,
            "appliance": "dishwasher",
            "mac_address": "08:dd:0f:1c:2a",
            "auth_code": "shjkhsjk839903klkkl"
        },
        {
            "child": 2,
            "appliance" : "washing_machine",
            "mac_address" : "4c:2a:24:43",
            "auth_code": "jdhjjks88392ui"
        }
    ]
}
waiting for parsing to occur...

Exception (28):
epc1=0x4000bf0e epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

ctx: cont
sp: 3ffef7c0 end: 3ffefa30 offset: 01a0

>>>stack>>>
3ffef960:  3fffdad0 3ffef9b0 00000001 40202392 
3ffef970:  3ffef980 3fff124b 3ffef980 0000000a <
3ffef980:  3ffe85b8 00000000 3fff1254 00000800 
3ffef990:  00000000 00000001 3ffee94c 3ffeea08 
3ffef9a0:  3fffdad0 00000000 3ffe8350 4020259d 
3ffef9b0:  00000000 3ffe89e8 00000000 3ffe89e8 
3ffef9c0:  00000000 00000000 ffffffff fe000001 
3ffef9d0:  3ffe8496 00000000 fe01ef35 00000000 
3ffef9e0:  00000000 feefeffe feefeffe feefeffe 
3ffef9f0:  feef0031 feefeffe feefeffe feefeffe 
3ffefa00:  feefeffe feefeffe feefeffe feefeffe 
3ffefa10:  feefeffe feefeffe 3ffeea00 40204018 
3ffefa20:  feefeffe feefeffe 3ffeea10 40100718 
<<<stack<<<

 ets Jan  8 2013,rst cause:2, boot mode:(1,7)

Go Up