-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unhandled exception #2
Comments
I suppose that the type of using Newtonsoft.Json;
namespace GenotekToGedcom.Models.Genotek;
public class Card
{
// ...
[JsonProperty("birthplaceParsed")]
public object? BirthplaceParsed { get; set; }
// ...
[JsonProperty("deathplaceParsed")]
public object? DeathplaceParsed { get; set; }
// ...
} |
You may also validate the JSON file using some service like https://jsonformatter.curiousconcept.com/ in order to ensure that it's a 100% valid JSON. |
Json is valid, but very large (6 MBs), your suggested validator got an error, I've used this one: https://jsonlint.com/ |
I can't compile your code now, but I can show the format of data: "birthplaceParsed": [{
"postal_code": "173000",
"country": "Россия",
"country_iso_code": "RU",
"federal_district": null,
"region_iso_code": "RU-NGR",
"region": "Новгородская",
"area": null,
"city": "Великий Новгород",
"city_district": null,
"settlement": null,
"history_values": null,
"geo_lat": "58.521475",
"geo_lon": "31.275475",
"qc_geo": "4"
}],
---
"birthplaceParsed": [{
"postal_code": "660000",
"country": "Россия",
"country_iso_code": "RU",
"federal_district": null,
"region_iso_code": "RU-KYA",
"region": "Красноярский",
"area": null,
"city": "Красноярск",
"city_district": null,
"settlement": null,
"history_values": null,
"geo_lat": "56.009477",
"geo_lon": "92.852449",
"qc_geo": "4"
}],
---
"birthplaceParsed": [],
---
"birthplace": ["Россия, Новгородская обл, Валдайский р-н, село Едрово"],
"birthplaceParsed": [{
"postal_code": "175429",
"country": "Россия",
"country_iso_code": "RU",
"federal_district": "Северо-Западный",
"region_iso_code": "RU-NGR",
"region": "Новгородская",
"area": "Валдайский",
"city": null,
"city_district": null,
"settlement": "Едрово",
"history_values": null,
"geo_lat": "57.9133858",
"geo_lon": "33.6198281",
"qc_geo": "3"
}],
---
|
I've found it! They've implemented history archives search and some of my relatives got a flag inside burthplaceParsed:
I've replaced them to null and now it works. |
Failed to convert:
I can send you the json on your request via telegram or email.
The text was updated successfully, but these errors were encountered: