I have an object class that has the following variables:
class empleado
{
public string nombre = "Nicolas";
public string apellido = "Flores";
public int edad= 22;
}
And I can generate a Json with this line of code:
string jsonResult = JsonConvert.SerializeObject(empleado);
But to the json that generates I would like to add other data apart from the object, how could I do it?
empleadoclass, do you?