What does “JSON standard only allows one top level value”?

前端 未结 1 646
礼貌的吻别
礼貌的吻别 2021-01-07 07:13

In my IntelliJ editor, I have a test.json file as below. The second json record displays an error message \"Json standard only allows one top-level value\". But this is a va

相关标签:
1条回答
  • 2021-01-07 08:00

    You have to combine them as [ {Obj 1}, {Obj 2} ] if you want to use them in the same json file. Otherwise the json file will be containing two dictionary objects and it can only have one top level object.

    0 讨论(0)
提交回复
热议问题