Do you have any more details on how you get it to work? I've tried to apply your solution and apex_json.get_clob('id_token') is returning a null.
apex_json.get_clob('id_token')