If  this extra newline is necessary then we should fix it inside curlJson