Added support for json input in prompt