/**
 * @license
 * Copyright 2017 The FOAM Authors. All Rights Reserved.
 * http://www.apache.org/licenses/LICENSE-2.0
 */

package foam.lib.json;

import foam.lib.parse.*;

public class ArrayParser
  extends ProxyParser
{
  public ArrayParser() {
    super(new Seq1(3,
      Whitespace.instance(),
      Literal.create("["),
      Whitespace.instance(),
      new Repeat(
        AnyParser.instance(),
        new Seq0(Whitespace.instance(), Literal.create(","), Whitespace.instance())),
      Whitespace.instance(),
      Literal.create("]")));
  }
}

@@ -374,16 +374,73 @@
         
+new ProxyParser() %7B public Parser getDelegate() %7B return 
 AnyParse
@@ -443,32 +443,36 @@
 arser.instance()
+; %7D%7D
 ,%0A        new Se

Fix for infinite recursion if Array and Any Parsers.