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 #18

Closed
wants to merge 23 commits into from
Closed

Conversation

hstern
Copy link
Contributor

@hstern hstern commented Sep 14, 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).

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.

1 participant