Skip to content

Commit f15f59e

Browse files
committed
Refactor levels.json to use array format
Changed the structure of levels.json from an object with a 'Levels' key to a plain array of level objects. This simplifies data access and aligns with common JSON array usage.
1 parent 2fc1914 commit f15f59e

1 file changed

Lines changed: 12 additions & 14 deletions

File tree

src/Components/Utility/levels.json

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
{
2-
"Levels": [
3-
{"id": 1, "val": 100},
4-
{"id": 2, "val": 380},
5-
{"id": 3, "val": 770},
6-
{"id": 4, "val": 1300},
7-
{"id": 5, "val": 2150},
8-
{"id": 6, "val": 3300},
9-
{"id": 7, "val": 4800},
10-
{"id": 8, "val": 6900},
11-
{"id": 9, "val": 10000},
12-
{"id": 10,"val": 15000}
13-
]
14-
}
1+
[
2+
{"id": 1, "val": 100},
3+
{"id": 2, "val": 380},
4+
{"id": 3, "val": 770},
5+
{"id": 4, "val": 1300},
6+
{"id": 5, "val": 2150},
7+
{"id": 6, "val": 3300},
8+
{"id": 7, "val": 4800},
9+
{"id": 8, "val": 6900},
10+
{"id": 9, "val": 10000},
11+
{"id": 10,"val": 15000}
12+
]

0 commit comments

Comments
 (0)