There is a json of this type:
{ "alarm.event": false, "gsm.module.status": true, "gsm.network.roaming.status": false, "position.altitude": 210.5, "position.direction": 0, "position.latitude": 50.802413, "position.longitude": 35.800086, "position.satellites": 18, "position.speed": 0, "position.timestamp": 1542783744, "position.valid": true, "timestamp": 1542783737 } I would like to deserialize it approximately into this type:
public class Root{ [JsonProperty("position")] public Position Position; } public class Position { [JsonProperty("longitude")] public double Longitude; } and so on, that is, so that json converter understands that the first name to the point is a class, and then it has fields. Is this really done by avoiding a little blood? I just want to use metadata, so I understand that you can get an object with a dictionary and do what you want with it, but I want boxed support for nullable initialization if there is no such class in json, for example, you need to do this with your hands.
"gsm.module.status": true,get:"gsm": {"module": {"status": true...? - gil9red