fixed issue with json and default parameters