Generate pretty json4s scala not working -


i have issue formatting (prettying) json in scala.

import org.json4s.jackson.jsonmethods._ import org.json4s.jackson.serialization._  def toto () = {  implicit val formats = defaultformats  val json = ("test" -> write(newpro())  render(json)  }  newpro() = {  pro( numeropro = ("test") namepro = ("test)  } 

it generates correct json not formatted. have tried use pretty , writepretty nothing changed, json still same.

do have idea ?


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -