Expose encodePrettily on JsonObject and JsonArray