I'm new to creating JSON, I'm trying to create a JSON in C # which I can do it in a basic way, that is, with the basic structure.
I need to obtain the following structure as a result:
{
"Encabezado ": {
"InstitucionId": "072",
"FolioCliente": "A123"
},
"Datos": {
"OCR": "3374999950186",
"CIC": "",
"ApellidoPaterno": "FLORES",
"ApellidoMaterno": "CARLOS",
"Nombre": "DE LA CRUZ",
"AnioRegistro": "2008",
"Emision": "2013",
"ClaveElector": "LPVLJN90022109H700",
"CURP": "LOVJ900221HDFPLN03",
"Consentimiento": "1"
},
"Ubicación": {
"PosicionSatelital ": {
"Latitud": "13.800499",
"Longitud": "-124.160198"
}
},
"Minucias": [{
"Tipo ": "ANSI ",
"Nombre": "HUELLA2",
"Valor": "145454544"
},
{
"Tipo ": "ANSI ",
"Nombre": "HUELLA7",
"Valor": "145454544"
}
]
}
I have my code for the JSON:
public class Validacion
{
public long InstitucionId { get; set; }
public string FolioCliente { get; set; }
public long OCR { get; set; }
public long CIC { get; set; }
public string ApellidoPaterno { get; set; }
public string ApellidoMaterno { get; set; }
public string Nombre { get; set; }
public long AnioRegistro { get; set; }
public long Emision { get; set; }
public string ClaveElector { get; set; }
public string CURP { get; set; }
public long Consentimiento { get; set; }
public double Latitud { get; set; }
public double Longitud { get; set; }
public string Tipo { get; set; }
public string NombreMinucias { get; set; }
public string Valor { get; set; }
public string Tipo2 { get; set; }
public string NombreMinucias2 { get; set; }
public string Valor2 { get; set; }
}
What do I have to add in my code to be able to structure it as I need it?