Request : I’m flattening the Json file and finally trying to write into the file
Below is transform the flatten and just print in the screen: jsonParsed.transform(claimHeader).foreach(Json.stringify _ andThen println))
I have to write into the file(using scala) how will i write into above statement.
I tried this.But throw the error.Not enough declaration. val s = new PrintWriter(“C:/Users/Rajesh/Desktop/Json_schema_output.txt”) s.write(jsonParsed.transform(claimHeader).foreach(Json.stringify _ andThen println)
Hi @Raj1 , I saw your question about Json parsing, I am also facing issues to parse the json, can you please help me? This is my question with Input and expected output. I don’t need any hard code in code as Tags are not fixed always.