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

Streaming JSON parser, helper for streaming arrays of small values #10

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

gregstuder
Copy link

Want to do some I/O to/from JSON of intermediate toolpather artifacts (like 2D+Z chunks, raw motion information, etc.) - this will create big JSON arrays, which currently can't be read efficiently with json-cpp.

This patch rewires the Reader implementation to use an iterator interface that looks identical to char* iteration - no change to behavior, but now it's possible to stream parse arrays (and other stuff too in the future if we want).

@@ -7,6 +7,10 @@

VALGRIND_CMD = 'valgrind --tool=memcheck --leak-check=yes --undef-value-errors=yes'

# Hack for OSX el capitan and above
if "TEST_DYLD_LIBRARY_PATH" in os.environ:
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI - the fix here is that with OSX's bad new SIP in el capitan+, anything executed from /usr/bin (i.e. /usr/bin/env) has DYLD_LIBRARY_PATH stripped.

@gregstuder
Copy link
Author

gregstuder commented Oct 21, 2016

2 bugs - forgot an include, and always need to initialize the error value to something

Now fully blue on jenkins.
http://10.1.0.163:8080/job/json-cpp/115/

@dudecc

@gregstuder
Copy link
Author

Should probably also bump the minor version if this goes in

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