Muestra las diferencias entre dos versiones de la página.
| Ambos lados, revisión anterior Revisión previa Próxima revisión | Revisión previa | ||
|
fw:othersnet:jsonnet [2010/02/23 19:09] alfred |
fw:othersnet:jsonnet [2020/05/09 09:25] (actual) |
||
|---|---|---|---|
| Línea 1: | Línea 1: | ||
| ====== Json.NET ====== | ====== Json.NET ====== | ||
| + | ===== New things ===== | ||
| + | I have been using Json.NET for a lot of time. It is simple and has been evolving during all this time. In this section I add some of those characteristics worth of being maintained. | ||
| + | ==== Characteristics ==== | ||
| + | === Deserialize an anonymous object === | ||
| + | <code csharp> | ||
| + | var definition = new { token = "" }; | ||
| + | var token = JsonConvert.DeserializeAnonymousType(jsonresult, definition); | ||
| + | </code> | ||
| ===== Basico para .NET 3.5 ===== | ===== Basico para .NET 3.5 ===== | ||