Groovy Parse JSON file and out put file to xls

Is there something you love about groovyPost? Or perhaps something you think would make it better?

Groovy Parse JSON file and out put file to xls

Postby Pasi12 » Fri Feb 03, 2017 10:32 am

HI
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 }


Thanks,
Pasi
Pasi12
Newbie
Newbie
 
Posts: 1
Joined: Fri Feb 03, 2017 10:24 am

Return to Site Comments & Suggestions

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 4 guests