couchbaselabs / gojsonsm

Go implementation of my JSONSM algorithm.
9 stars 7 forks source link

MB-32987 - Fix handling of nested arrays of various objs and types, a… #91

Closed nelio2k closed 5 years ago

nelio2k commented 5 years ago

…nd to keep parsing once embedded objs are done

2 Things are addressed here in this PR:

  1. When we're handling arrays with embedded objects/array of arrays, we should not exit right away but keep going through all the potential index entries ([0], [1]'s, etc) and make sure all those match.
  2. Arrays of non-string literals were not handled correctly.