playframework/Play20 — comment on commit 93c1741112564fb5d97b756a5cac120ff0c55fbe
File:  line 0
By guillaumebort:

I agree with Sadek. A Json key is always a string.

On 30 déc. 2011, at 10:26, Julien Richard-Foy wrote:

> Consider this:
>
> ```json
> {
> "2": {
> "name": "Julien",
> "age": 26
> },
> "5": {
> "name": "Sadek",
> "age": 31
> }
> }
> ```
>
> ```scala
> val users = Json.parse(json).as[Long, User] // I get a map of (Id->User)
> ```
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/playframework/Play20/commit/93c1741112564fb5d97b756a5cac120ff0c55fbe#commitcomment-827743