Deserialize an already-parsed JSON value into an object of the specified type. The source is the java.util.Map/java.util.List/String/Number/Boolean/null structure that #toType(String, Type) returns for #MAP_TYPE or #OBJECT_TYPE
(@Nullable Object source, Type typeOfT)
| 273 | * deeper than {@link JsonOutput#MAX_DEPTH} |
| 274 | */ |
| 275 | public <T> @Nullable T convert(@Nullable Object source, Type typeOfT) { |
| 276 | if (source == null) { |
| 277 | return null; |
| 278 | } |
| 279 | return toType(toJson(source), typeOfT); |
| 280 | } |
| 281 | |
| 282 | /** |
| 283 | * Create a new {@code JsonInput} object to traverse the JSON string supplied the specified {@code |
no test coverage detected