Allow override default params
Fix ValueError if JSON is not valid