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
Post a Comment