Last active
December 19, 2015 00:29
-
-
Save pollingj/5869073 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class LocationsController(val swagger:Swagger) extends HullCityPlanApiStack with JacksonJsonParsing with JacksonJsonSupport { | |
implicit val jsonFormats = DefaultFormats+ new ObjectIdSerializer | |
var locationService = new LocationService() | |
mapper.configure(SerializationFeature.WRAP_ROOT_VALUE, true) | |
... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"location" : | |
[{ | |
"id":{"$oid":"51cac8d84728c7471e101317"}, | |
"name":"test1", | |
"coordinates":[], | |
"jobs":100 | |
}] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"JArray":[{ | |
"JObject":{ | |
"id":{"JObject":{"$oid":{"JString":"51caca2e472829f13a8b6dc1"}}}, | |
"name":{"JString":"test1"}, | |
"coordinates":{"JArray":[]}, | |
"jobs":{"JInt":100} | |
} | |
}] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id":{"$oid":"51cac8d84728c7471e101317"}, | |
"name":"test1", | |
"coordinates":[], | |
"jobs":100 | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment