public static LazyElement parse(String str) throws LazyException {
  if (str.startsWith("[")) {
    return new LazyArray(str);
  }
 else {
    return new LazyObject(str);
  }
}

public static LazyElement parse ( String str ) throws LazyException { if ( str . startsWith ( "[" ) ) { return new LazyArray ( str ) ; } else { return new LazyObject ( str ) ; } }
parses a string and returns either a lazyobject or lazyarray
