[Shridhar] - Added support to take JSON as input