private static object Parse(Context cx, Scriptable scope, string jtext) { try { return new JsonParser(cx, scope).ParseValue(jtext); } catch (JsonParser.ParseException ex) { throw ScriptRuntime.ConstructError("SyntaxError", ex.Message); } }