Sign in to follow this  

Groovy Parse JSON file and out put file to xls

Recommended Posts


I have a code to start parsing Json file but don't know how to output it into an excel file? :cry: please help: here is my code:


import groovy.json.*

import groovy.json.JsonOutput


File f = new File("C:\\Users\\Pasi\\Documents\\"+File.separator+'json.txt')

def inputFile = new File("C:\\Users\\Pasi\\Documents\\json.txt")

def InputJSON = new JsonSlurper().parseText(inputFile.text)

InputJSON.each{ println it }





Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Who's Online   0 Members, 0 Anonymous, 11 Guests (See full list)

    There are no registered users currently online