When you make an update call like that, there is no body in the response. The HTTP "200 OK" status is all you need. So I suspect output.json is empty, which is why your json parser is rejecting it.
Oh wow.. Yeah that's it.. it's been a long day.. Thanks for the fast response