Fix curl commands to use NEWJSON so we dont have to use regular expression to parse outputs.