Closes #131 allowing artbitrarily nested json to be flattened into tuples and re-expanded back into nested json again

Good idea.
On Nov 3, 2014 6:35 PM, "eawagner" <notifications@github.com> wrote:

> In
> mango-json/src/main/java/org/calrissian/mango/json/util/json/JsonTupleStore.java:
>
> > +
> > +            return levels;
> > +        }
> > +
> > +        @Override
> > +        public int compare(Tuple tuple, Tuple tuple2) {
> > +
> > +            int levels1 = getLevels(tuple);
> > +            int levels2 = getLevels(tuple2);
> > +
> > +            ComparisonChain comparisonChain = ComparisonChain.start().compare(levels1, levels2);
> > +
> > +            for(int i = 0; i < levels1; i++) {
> > +
> > +                Pair<Integer, Integer> pair1 = hasArrayIndex(tuple.getMetadata(), i)?
> > +                        new Pair<Integer, Integer>(i, getArrayIndex(tuple.getMetadata(), i)) : new Pair(-1, -1);
>
> Can you turn Pair(-1,-1) into a constant?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/calrissian/mango/pull/130/files#r19775935>.
>