private static void replace(FacesContext context, UIComponent effect, StringBuffer s) throws Exception {
JSONTokener x = new JSONTokener(s.toString());
char c;
String key;
if (x.nextClean() != '{') {
throw x.syntaxError("A JSONObject text must begin with '{'");
}
for (;;) {
int idx;
c = x.nextClean();