Toggle navigation
Home
com.google.gson.JsonElement to com.fasterxml.jackson.databind.JsonNode
No. of Instances - 5
No. of Commits - 1
No. of Projects - {'graylog2-server'}
Hierarchy/Composition: SIBLING
Primitive Info: -
NameSpace: External -> External
Mapping:
Add or Remove Method invocation
Optional.ofNullable(asJsonObject(jsonElement)).map(hitsJson -> asJsonObject(hitsJson.get("_source")))
to
Optional.ofNullable(jsonElement.path("_source"))
gson.<Map<String,Object>>fromJson(sourceJson,type)
to
objectMapper.<Map<String,Object>>convertValue(sourceJson,type)
jsonElement.isJsonObject()
to
jsonElement.isObject()
jsonElement.isJsonObject()
to
jsonElement.isObject()
map
to
path
Cascading Type Change (Different)
Optional<JsonObject>
to
JsonNode