Example of using the Scala spray-json parser to parse a complex JSON structure
From: https://github.com/spray/spray-json
The first sample1.json file shows an instance of the event as denoted by "EventId".
The second sample2.json file has sample of two elements as an array.
-
sample1.json sample json file with only one element
-
sample2.json made up sample json file with more than one element (array)
Use this online JSON editor to view the sample JSON files: http://www.jsoneditoronline.org
To run the code use git clone to clone this project, navigate to the folder and excute the command:
sbt compile run