Serialize the specified object to JSON string representation. NOTE : This method limits traversal of nested objects to the default JsonOutput#MAX_DEPTH maximum depth. @param toConvert the object to be serialized @return JSON string representing the specified object
(@Nullable Object toConvert)
| 118 | * @return JSON string representing the specified object |
| 119 | */ |
| 120 | public String toJson(@Nullable Object toConvert) { |
| 121 | return toJson(toConvert, JsonOutput.MAX_DEPTH); |
| 122 | } |
| 123 | |
| 124 | /** |
| 125 | * Serialize the specified object to JSON string representation. |