json editing
changed editing to codemirror implementation