Changed input method for json