Make get_json_result available more widely

Change-Id: Iecc2ec34ced0ac4ee17b5f1b12e4e2d29f3082e6