Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 4300

ParseJSON error

$
0
0

I get an error when loading the following valid JSON string:

The string var JSONString contains the following text:

{
    "Lines": [
        {
            "index": 0,
            "nb": "9822",
            "size": 2,
            "position": {
                "default": 1,
                "layer": 0
            },
            "tags": {
                "time": "2010-07-13T15:38:07.000000Z",
               
                "id": "0"
            }
        },
        {
            "index": 1,
            "name": "Apple",
            "size": 39,
            "position": {
                "default": 1,
                "layer": 0
            },
            "tags": {
                "time": "2010-07-13T15:38:07.000000Z",
                "id": "0"
            }
        }
    ]
}

Var Lines() As Variant = ParseJSON(jsonString)

This gives an error:
An exception of class TypeMismatchException was not handled. The application must shut down.

Any ideas why? The JSON string is a valid one.

6 posts - 4 participants

Read full topic


Viewing all articles
Browse latest Browse all 4300

Latest Images

Trending Articles



Latest Images