Use json_decref() properly in tutorial