Remote API providing non-C# compliant property names [Solved]

I have a pre-existing API endpoint that returns a json structure with property name ‘.issued’.
The Newtonsoft solution uses JsonProperty(".issued") to map this to the associated response DTO property.
What is the equivalent in the SS Text solution? Is there an extension that doesn’t require I write a whole custom deserialiser for all of the properties? E.g. one that allows me to map any property name starting with ‘.’ to one starting with ‘_’ ?

Thanks.

Ah, took a wild stab in the dark, and found that [DataMember(Name=".issued")] does the job.
Leaving this here in case anyone else also can’t find it in the documentation.

Thanks

3 Likes