void () { JsonEditorOptions editorOptions = JsonEditorOptions.getInstance(); boolean oldQuote = editorOptions.COMMA_MOVE_OUTSIDE_QUOTES; try { editorOptions.COMMA_MOVE_OUTSIDE_QUOTES = true; doTestComma("{\"x\": \"value<caret>\"}", "{\"x\": \"value\",<caret>}"); } finally { editorOptions.COMMA_MOVE_OUTSIDE_QUOTES = oldQuote; } }