Fixing json format for toInputConsole()