On Tuesday, January 15, 2013 4:57:09 PM UTC+1, Per Lindberg wrote:
> Well. Since my suggestion hasn't been implemented, I'm now throwing out
> It has some nice features, but this deficiency renders it useless in a
> JSP/JSTL environment, so any nice features become irrelevant.
1. Create a wrapper implementing `List` / `Map`. Not nice, but easy.
2. Create a wrapper accessing `JsonArray.elements` / `JsonObject.members`
via reflection. Even less nice (could break one day), but even easier.
3. Patch gson. This is more work as both mentioned classes already extend
`JsonElement`, so you can't use `AbstractMap` / `AbstractList`.
I wonder if there's a good reason for JsonArray/JsonObject not to implement