AtsushiSakai/PyJSONViewer

A list containing datatypes other than str doesn't work

abshk-jr opened this issue · 3 comments

For the given json file

{
    "character_set_1" : ["1", 2, 3]
}

the non-string elements result in an error

image

I’m not sure, is it valid JSON? I think all list elements should be same type.

It is indeed valid JSON, js treats it as valid too.
Even if one were to use a list with all the elements of the same type, it would still return an error.
The following JSON file doesn't work either

{
    "list" : [1, 2, 3]
}

Thanks. You are right. I hope it is fixed in #30