this isn't really updating with JSON, it's updating with a dictionary. Shouldn't you be passing in a JSON string?