add json parsing of lists and maps

このコミットが含まれているのは:
Felix Van der Jeugt 2022-11-08 23:31:00 +01:00
コミット 025c8125fa
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 58B209295023754D
16個のファイルの変更210行の追加20行の削除

9
jsontest/complex.json ノーマルファイル
ファイルの表示

@ -0,0 +1,9 @@
{
"planets": [
{ "ship_count": 2, "x": -2.0, "y": 0.0, "owner": 1, "name": "your planet" },
{ "ship_count": 4, "x": 2.0, "y": 0.0, "owner": 2, "name": "enemy planet" },
{ "ship_count": 2, "x": 0.0, "y": 2.0, "owner": null, "name": "neutral planet" }
], "expeditions": [
{ "id": 169, "ship_count": 8, "origin": "your planet", "destination": "enemy planet", "owner": 1, "turns_remaining": 2 }
]
}

1
jsontest/float.json ノーマルファイル
ファイルの表示

@ -0,0 +1 @@
1.231

1
jsontest/list.json ノーマルファイル
ファイルの表示

@ -0,0 +1 @@
["asdf", 1, 2]

1
jsontest/null.json ノーマルファイル
ファイルの表示

@ -0,0 +1 @@
null

1
jsontest/number.json ノーマルファイル
ファイルの表示

@ -0,0 +1 @@
2

1
jsontest/simplestring.json ノーマルファイル
ファイルの表示

@ -0,0 +1 @@
"asdf"