<div id="reply-content"><span style="color: rgb(160, 160, 168); font-size: 16.5px; ">On Tuesday, March 12, 2013 at 4:06 AM, Victor Julien wrote:</span></div>
<blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
<div id="quoted-message-content"><div>On 03/11/2013 03:29 PM, Brian Rectanus wrote:</div><blockquote type="cite"><div><div>On Thu, Mar 7, 2013 at 5:48 AM, Victor Julien <lists@inliniac.net> wrote:</div><blockquote type="cite"><div><div>On 03/07/2013 12:46 PM, Aaron Nikula wrote:</div><blockquote type="cite"><div><div>All,</div><div><br></div><div>I have been experimenting with the /files/-/json/./log /output and I</div><div>like it a lot. I was wondering if I could also output regular alerts to</div><div>a JSON format? If not, are there any plans to implement that feature?</div></div></blockquote><div><br></div><div>I'd like to do that as well. Have been thinking about adding this as an</div><div>option to all outputs. Care to open a feature ticket?</div></div></blockquote><div><br></div><div>FYI, take a look at yajl lib for JSON if your looking for a lib.</div><div>Seems pretty nice and very light. We are using it in ironbee now.</div><div><br></div><div>http://lloyd.github.com/yajl/</div></div></blockquote><div><br></div><div>Thanks Brian.</div><div><br></div><div>We already use libjansson for the unix socket protocol, so using this</div><div>would require some refactoring. Do you think this yajl will bring big</div><div>benefits over libjansson?</div></div></blockquote><div><br></div><div>Depends on what you use it for. Yajl allows for stream based parsing directly into your own structures. No need to parse everything into a tree of nodes and then read through that. So, I think yajl is more efficiently using resources, but at the cost of some extra code complexity sue to having to write callbacks for each node type. We needed the streaming parser for potentially large json structures coming in chunks. Yajl is nice, but I think libjannson is as well. They just solve different needs. For instance you could build libjannson on top of yajl. </div><div><br></div><div>-B</div>