Just for the record, we have now:

  • Json.toString()
  • Json.toPrettyString()
  • writeJsonString(dst, json) (was toJson)
  • writePrettyJsonString(dst, json) (was toPrettyJson)

The old toXYZ functions are still there as aliases but will be deprecated after the next release.