@@ -0,0 +1,677 @@
+/**%0A * @license%0A * Copyright 2017 The FOAM Authors. All Rights Reserved.%0A * http://www.apache.org/licenses/LICENSE-2.0%0A */%0Apackage foam.lib.json;%0A%0Aimport foam.lib.parse.*;%0Aimport foam.core.X;%0A%0Apublic class UnknownFObjectParser implements Parser %7B%0A%0A  public PStream parse(PStream ps, ParserContext x) %7B%0A    ps = ps.apply(new Whitespace(), x);%0A    if ( ps == null ) return null;%0A%0A    StringBuilder sb = new StringBuilder();%0A%0A    while( ps.valid() ) %7B%0A      sb.append(ps.head());%0A      ps = ps.tail();%0A    %7D%0A%0A    UnknownFObject unknownFObject = ((X)x.get(%22x%22)).create(UnknownFObject.class);%0A    unknownFObject.setJson(sb.toString());%0A%0A    return ps.setValue(unknownFObject);%0A  %7D%0A%7D

add UnknowFObjectParser.java