stephanrauh / AngularFaces

AngularFaces is a JSF library making it easy to integrate AngularJS code.
https://www.angularfaces.net
Apache License 2.0
90 stars 39 forks source link

Support alternative JSON serializers #12

Closed ratcashdev closed 9 years ago

ratcashdev commented 10 years ago

In an app, where I am already using JAX-RS with Jackson (as opposed to the default provider), it's quite a hassle to setup two different serializers to provide identical representation of the data-model (think JDK8 time classes and entity graphs).

It would be great if angularFaces could use one of several JSON serializers (MOXY, Jackson, GSON, or the j2ee7 JSON interfaces)

stephanrauh commented 10 years ago

Good idea, thanks for the hint!

stephanrauh commented 10 years ago

AngularFaces 2.1.0-SNAPSHOT (the head revision on GitHub) now supports both Jackson and Gson. Other JSON serializers will follow later.

ratcashdev commented 10 years ago

Great news. I checked your commit and saw org.codehaus.jackson among the dependencies. That's an old library (1.x), replaced by com.fasterxml.jackson (2.x). Wouldn't it be better to use this new version?

stephanrauh commented 10 years ago

Done :).