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