Added json_curl function.