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)
(cherry picked from commit 8eea9aa8faafd5a248a00caaba43379fc7b52423)