Json.Net: JsonSerializer-Atributo para nombrar personalizado [duplicar]
Esta pregunta ya tiene una respuesta aquí:
Utilizo el JsonSerializer
de Newtonsoft.
Pero quiero nombrar los objetos json por mí mismo.
Probé el atributo JsonObject
[JsonObject(Description = "MyName", Title = "orThisname")]
JsonArray
tampoco funcionó...
¿Es posible nombrar el json-objetcs / arrays by myself?
31
Author: Paolo Moretti, 2011-07-28
1 answers
Creo que encontré la solución:
[JsonProperty(PropertyName = "Myname")]
Le cambiará el nombre.
55
Author: user437899,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2011-11-11 16:26:09
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2011-11-11 16:26:09