I am trying to retrieve data from an API. The API has its JSON properties as
[ { "Name": "Dan", "age": 10, "isActive":true, "Street Address": "14 VI avenue, London", } ]
Am trying to map the json properties to a class I created so that I can access the view the Deseriaized object. But am having issues with creating a Property in my class that maps exactly to the JSON property "Street Address".
How can I create a property in .NET that maps exactly to the JSON property that has space.
Currently I receive an error when I do Public string Street Address {get; set;}.
I want to be able to map the Street Address property from the JSON to my defined property but I cannot because of the space