Skip to main content
added 267 characters in body
Source Link
Ahmad F
  • 31.8k
  • 19
  • 101
  • 151

You just simply need:

latitude <- map["location.lat"]
longitude <- map["location.lng"]

So far ObjectMapper supports dot notation within keys for easy mapping of nested objects (you could find it under "Easy Mapping of Nested Objects" in library documentation).

You just simply need:

latitude <- map["location.lat"]
longitude <- map["location.lng"]

You just simply need:

latitude <- map["location.lat"]
longitude <- map["location.lng"]

So far ObjectMapper supports dot notation within keys for easy mapping of nested objects (you could find it under "Easy Mapping of Nested Objects" in library documentation).

Source Link
Bartłomiej Semańczyk
  • 61.9k
  • 52
  • 255
  • 407

You just simply need:

latitude <- map["location.lat"]
longitude <- map["location.lng"]