On Tue, Jun 26, 2012 at 1:26 PM, Edward Burns <edward.burns_at_oracle.com>wrote:
> >>>>> On Mon, 25 Jun 2012 20:34:02 -0700, Edward Burns <
> edward.burns_at_oracle.com> said:
>
> EB> * An EL function to adapt JSON to a Map<String, Object>, like this:
>
> EB> <p>
>
> EB> <h:outputText value="json from literal">
>
> EB> <f:passThroughAttributes value="#{p:jsonToMap('{ a : { b : { c
> : { d : e, f : g }, h : i, j : { k : { l : { m : n } } } } } }')}" />
>
> EB> </h:outputText>
>
> EB> </p>
>
> EB> <p>
>
> EB> <h:outputText value="json from EL">
>
> EB> <f:passThroughAttributes value="#{p:jsonToMap(bean.json)}" />
>
> EB> </h:outputText>
>
> EB> </p>
>
> EB> I'm open to adding additional EL functions if we want to support other
> EB> ways to slurp JSON around.
>
> I need those of you that feel strongly that we should have JSON support
> to voice their opinion here because requiring JSON means an additional
> library dependency. This means that deploying Mojarra to Tomcat now
> requires bundling a JSON impl. The same would be true with MyFaces,
> they'd need to bundle in a JSON impl.
>
> Please confirm that is ok.
>
I think this is probably worth it, since there are so few dependencies
already. One of my clients does some custom JSON parsing; they were using
the libraries that ship with WAS, but now they use the ones included with
PrimeFaces. However, I've worked with several clients that wouldn't go down
that path.
>
> Ed
>
> --
> | edward.burns_at_oracle.com | office: +1 407 458 0017
> | homepage: | http://ridingthecrest.com/
> | 17 Business days til JSF 2.2 Public Review to EG
>