Add unittest for clean_json. Ensure clean_json has correct behavior for None types.