Which JSON library to pick?

Hi All, I would like to be able to encode objects of type ILoggingEvent or IAccessEvent in JSON. Which JSON library would you recommend? Cheers, -- Ceki http://twitter.com/#!/ceki

This post might be helpful: http://stackoverflow.com/questions/338586/a-better-java-json-library -Tony On Wed, Apr 18, 2012 at 10:14 AM, ceki <ceki@qos.ch> wrote:
Hi All,
I would like to be able to encode objects of type ILoggingEvent or IAccessEvent in JSON. Which JSON library would you recommend?
Cheers,
-- Ceki http://twitter.com/#!/ceki ______________________________**_________________ logback-dev mailing list logback-dev@qos.ch http://mailman.qos.ch/mailman/**listinfo/logback-dev<http://mailman.qos.ch/mailman/listinfo/logback-dev>

This will probably be helpful as well: https://github.com/qos-ch/logback-extensions/wiki Cheers, Les On Wed, Apr 18, 2012 at 7:14 AM, ceki <ceki@qos.ch> wrote:
Hi All,
I would like to be able to encode objects of type ILoggingEvent or IAccessEvent in JSON. Which JSON library would you recommend?
Cheers,
-- Ceki http://twitter.com/#!/ceki ______________________________**_________________ logback-dev mailing list logback-dev@qos.ch http://mailman.qos.ch/mailman/**listinfo/logback-dev<http://mailman.qos.ch/mailman/listinfo/logback-dev>

Hi Les, Thanks for your response. So you've picked jackson as the json encoder for logback-extensions. I think I'll go with json-simple since my needs seem to similar to those described by Rob@Rojotek [1]. He recommends json-simple. If the needs change, I will sure look into jackson. [1] http://goo.gl/pMhwr -- Ceki http://twitter.com/#!/ceki On 18.04.2012 18:41, Les Hazlewood wrote:
This will probably be helpful as well:
https://github.com/qos-ch/logback-extensions/wiki
Cheers,
Les
On Wed, Apr 18, 2012 at 7:14 AM, ceki <ceki@qos.ch <mailto:ceki@qos.ch>> wrote:
Hi All,
I would like to be able to encode objects of type ILoggingEvent or IAccessEvent in JSON. Which JSON library would you recommend?
Cheers,

The logback-extensions architecture allows you to add a new maven module for json-simple if you want. Then you can depend on the 'json' module and 'json-simple' (as your implementation .jar) and things will still work. If you need to switch to Jackson at a later date, you can just drop in the logback-ext-jackson .jar and change your config and you should be good to go. HTH, -- Les Hazlewood CTO, Stormpath | http://stormpath.com | 888.391.5282 PMC Chair, Apache Shiro | http://shiro.apache.org twitter: @lhazlewood | http://twitter.com/lhazlewood blog: http://leshazlewood.com stormpath blog: http://stormpath.com/blog/index On Wed, Apr 18, 2012 at 1:27 PM, ceki <ceki@qos.ch> wrote:
Hi Les,
Thanks for your response. So you've picked jackson as the json encoder for logback-extensions. I think I'll go with json-simple since my needs seem to similar to those described by Rob@Rojotek [1]. He recommends json-simple. If the needs change, I will sure look into jackson.
-- Ceki http://twitter.com/#!/ceki
On 18.04.2012 18:41, Les Hazlewood wrote:
This will probably be helpful as well:
https://github.com/qos-ch/logback-extensions/wiki
Cheers,
Les
On Wed, Apr 18, 2012 at 7:14 AM, ceki <ceki@qos.ch <mailto:ceki@qos.ch>>
wrote:
Hi All,
I would like to be able to encode objects of type ILoggingEvent or IAccessEvent in JSON. Which JSON library would you recommend?
Cheers,
_______________________________________________ logback-dev mailing list logback-dev@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-dev

Just my 2 cent: I had a very nice experience with jackson so far, concerning both performance and ease of use. See http://www.cowtowncoder.com/blog/archives/2009/12/entry_345.html for a performance comparison with some other frameworks. (I haven't immediately found a more recent comparison and this one was performed by the developer of Jackson) I haven't yet used Jackson 2.0. https://github.com/huxi/lilith/tree/master/lilith-data/logging-json-serializ... contains code that is doing something quite similar to what you'd like to do. I really like the MixIn way of jackson. Cheers, Joern. On 18.04.2012, at 22:27, ceki wrote:
Hi Les,
Thanks for your response. So you've picked jackson as the json encoder for logback-extensions. I think I'll go with json-simple since my needs seem to similar to those described by Rob@Rojotek [1]. He recommends json-simple. If the needs change, I will sure look into jackson.
-- Ceki http://twitter.com/#!/ceki
On 18.04.2012 18:41, Les Hazlewood wrote:
This will probably be helpful as well:
https://github.com/qos-ch/logback-extensions/wiki
Cheers,
Les
On Wed, Apr 18, 2012 at 7:14 AM, ceki <ceki@qos.ch <mailto:ceki@qos.ch>> wrote:
Hi All,
I would like to be able to encode objects of type ILoggingEvent or IAccessEvent in JSON. Which JSON library would you recommend?
Cheers,
_______________________________________________ logback-dev mailing list logback-dev@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-dev
participants (4)
-
ceki
-
Joern Huxhorn
-
Les Hazlewood
-
Tony Trinh