/** * parseMap * @return */ private JsonMap ParseMap() { if (buff[pos] != '{') { return(null); } JsonMap jo = JsonMap.Create(); while (pos < buff.Length && buff[pos] != '}') { pos++; // skip { or , String name = ParseString(); pos++; // skip : JsonValue value = ParseValue(); jo.Put(name, value); } pos++; // skip } return(jo); }
/** * Create a JsonMap object * @return */ public static JsonMap NewMap() { return(JsonMap.Create()); }