How to manipulate JSON file into array?

So, I have a JSON file with A LOT of data, formatted like this:

{
  "a": 1,
  "aa": 1,
  "aaa": 1,
  "aah": 1,
  // and so on
  "zwitterion": 1,
  "zwitterionic": 1
}

I wanted to take this list and turn it into an array of strings that has each word as one element in the array. (Can also be a List if needed.) The list contains every word in English, more or less – over 370 thousand lines – so manually changing aspects of the formatting beyond adding stuff at the start or end is not practical.
Thank you!

If you want it to be a list of strings, then having it as a list of strings in json format would be the better way to go. But, if you have it as is, just cast it into a dictionary<string, int> type.

If you then actually need it in a list, you could cast the keys into a string list.

Don’t forget these useful tools:

https://csharp2json.io

Problems with Unity “tiny lite” built-in JSON:

In general I highly suggest staying away from Unity’s JSON “tiny lite” package. It’s really not very capable at all and will silently fail on very common data structures, such as bare arrays, tuples, Dictionaries and Hashes and ALL properties.

Instead grab Newtonsoft JSON .NET off the asset store for free, or else install it from the Unity Package Manager (Window → Package Manager).