Skip to content

Commit

Permalink
Update stack size and documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperjj committed Jul 26, 2016
1 parent 913ba5b commit 5cef147
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ The changes needed to accommodate this functionality had a neglible impact on th

We are using LazyJSON in production at DoubleDutch. So far, it has been very stable and we are highly committed to fixing any issues that might arise in an extremely efficient manner. I repeat: we are using this in production! If you find any issues, please file them right here on the github project page!

If you need strong validation of raw JSON input data at the edge of your stack, we would suggest using another JSON parser for now (we use Jackson). We have plenty of confidence in LazyJSON, but all current unit tests have covered cases where the source JSON is well-formed. We do intend to start adding test cases for malformed JSON to verify the validation abilities of the parser in the near future, and will update this page when that happens!
If you need strong validation of raw JSON input data at the edge of your stack, we would suggest using another JSON parser for now (we use Jackson). We have plenty of confidence in LazyJSON, but all current unit tests have covered cases where the source JSON is well-formed. We do intend to start adding test cases for malformed JSON to verify the validation abilities of the parser in the near future, and will update this page when that happens! Finally, the current implementation uses a fixed size stack limiting the nested documents it can parse to a depth of 256 elements... that's 128 objects nested inside each other. If you reach this limit, let us know and we will prioritize fixing this ;-)
2 changes: 1 addition & 1 deletion src/main/java/me/doubledutch/lazy/LazyParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ protected LazyParser(final String source){
// The parser uses a crude stack while parsing that maintains a reference
// to the top element on the stack and automatically establishes a parent
// child relation ship when elements are pushed onto the stack.
private final LazyToken[] stack=new LazyToken[128];
private final LazyToken[] stack=new LazyToken[256];
private LazyToken stackTop=null;
private int stackPointer=1;

Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/version.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Sun Jul 24 20:43:50 PDT 2016
#Tue Jul 26 11:57:19 PDT 2016
BUILD_VERSION=1.0.0
BUILD_DATE=2016-07-25T03\:43\:50Z
BUILD_NUMBER=25
BUILD_DATE=2016-07-26T18\:57\:19Z
BUILD_NUMBER=26

0 comments on commit 5cef147

Please sign in to comment.