Json input

Signed-off-by: DrWhatNoName <drwhat@cryto.net>