Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
JsonRecordSeparatorPolicy doesn't handle braces inside quoted strings properly [BATCH-2125] #1470
isEndOfRecord is currently implemented as:
This is too simple. Nested braces inside quoted strings will be considered by the above code to unbalance the number of opening and closing braces.
Only braces outside of quotation marks should be considered. I think iterating over the string character by character, keeping track of whether or not we're inside quotation marks, is the only way to handle this.
I can write an implementation if desired.