readJsonValue<T> method

  1. @override
T readJsonValue<T>(
  1. String json,
  2. Class<T> type
)
override

Deserializes a structured json string into an object of type T.

Example

final user = mapper.readValue<User>(dataString, Class<User>());

Implementation

@override
T readJsonValue<T>(String json, Class<T> type) {
  final parser = getJsonParser(json);
  final result = getJsonDeserializationContext().deserialize(parser, type);

  parser.close();
  return result;
}