For a project where I receive JSON messages from a web server I was trying to convert these messages into a format that can be used easily within Mathematica. Because JSON also consists of key-value pairs I thought it would be logical to convert it to an Association. For a JSON file that is not nested this is easy:
Association[Import["example.json","JSON"]]
...but for more complex JSON files this does not work.
Question: Is it possible to convert a nested JSON file to a nested Association? Or is there a better way to handle JSON data in Mathematica?
Example JSON file from json.org.