зеркало из
https://github.com/iharh/notes.git
synced 2025-11-01 22:26:09 +02:00
9 строки
349 B
Plaintext
9 строки
349 B
Plaintext
Map<String, Object> map = objectMapper.readValue(jsonString, new TypeReference<Map<String,Object>>(){});
|
|
|
|
JsonNode jsonNodeRoot = objectMapper.readTree(jsonString);
|
|
JsonNode jsonNodeYear = jsonNodeRoot.get("year");
|
|
String year = jsonNodeYear.asText();
|
|
|
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|