C#C
C#3y ago
big OOF

❔ Dezerialise JSON response

Example:
person
{
18370101 (changing social security number)
{
name: name,
age: age
description: "<p> This is a person with name and age </p>"
}
}

I want to dezerialise the json response into <Person> but the social security number dosent belong to a json property. From what i understand you can use something called Jtoken to solve this but it dosent feel quite right. Are there any alternatives?

Also the field description contains html-elements, when im trying to dezerialise it throws an error, one again - any ideas? 🙂

Thanks in advance!
Was this page helpful?