Fix undefined $json usage

Change-Id: I187a3dd6ccbc0d179f3a43598a2f8f76dac3c7c6