Added json-mode.