Add json_util.c with helper functions. Keeping them in a separate file to avoid making *any* changes to the third-party json.c.