json: unreference the json object in json_get_field()

- the parsed json object has to be freed
- reported by dongwflj@163.com

(cherry picked from commit def8d2600422a442b971c204df98594b0dfdaacd)