I am working on a project with Grails 1.3.9 and I need to parse a JSON
file and read some values. This can be easily done with JsonSlurper
but it is supported only for Grails 1.8 and higher. Are there any other techniques to achieve this?
Asked
Active
Viewed 60 times
0

Jacob
- 3,580
- 22
- 82
- 146
1 Answers
1
Got it
def parsedJSON = JSON.parse(new FileInputStream(file), "UTF-8")

Jacob
- 3,580
- 22
- 82
- 146
-
Readers in the future woun't use Grails 1.3.9 :) – Jacob Sep 29 '16 at 11:25
-
Sounds possible :) – J. Chomel Sep 29 '16 at 11:39