COnverted params into JSON before doing JSON parse