Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add json input and output support #19

Merged
merged 36 commits into from
Oct 2, 2015
Merged

Add json input and output support #19

merged 36 commits into from
Oct 2, 2015

Conversation

hstern
Copy link
Contributor

@hstern hstern commented Sep 21, 2015

This adds several features to nmsg. Message modules now have a format and parse function for fields. Support for this should be added to pynmsg.

You can output messages in json format with the -J option to nmsgtool. You can input messages in json format with the -j option. JSON blobs with parse errors are ignored (and reported with debug >= 1).

This is blocked on lloyd/yajl#168 being accepted, unless you don't mind memory leakage on parse errors (or you merge my commits into your own build).

needs review.. code may now be GNU only
this preserves the ordering of fields while enabling binary search.
required for the new parse function so authors have control over loading
field dependencies.
not needed with all field types now supported
cmikk added a commit that referenced this pull request Oct 2, 2015
Add json input and output support
@cmikk cmikk merged commit ba4220b into farsightsec:next Oct 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants