Legal Notice
The opinions expressed herein are my own personal opinions and do not represent my employer’s view in anyway.Top Posts
- C# DateTime to UNIX timestamps
- .NET API CORS: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header.NET API
- C# JWT Token Get Expiry Timestamp
- C# Use HttpClient to GET JSON from API endpoint
- C# Azure Table Storage QueryAsync, Paging and Filtering
- C# Calculate Week Number from DateTime
- C# .net Swagger API Versioning - Show versions in your Swagger page
Archive
Meta
Tag Archives: ExpandoObject
C# Convert XML to JSON using dynamic ExpandoObject, XDocument and NewtonSoft.JSON
So I receive these XML feeds from my client, but I need to enrich the contents before I can use the data. AND I would like to work with JSON instead. So how to do that with a few lines … Continue reading →
Posted in .net, .NET Core, c#, General .NET
|
Tagged Convert, Dynamic, ExpandoObject, JSON, JsonConverter, Modify, Newtonsoft, XDocument, XML
|
Leave a comment
C# Deserialize JSON to dynamic ExpandoObject()
The Microsoft System.Text.Json.Serialization.JsonSerializer cannot (yet) convert JSON into dynamic objects. But good ole Newtonsoft.Json can. The conversion is simple too: After the conversion, you can work with the dynamic object as you wish: MORE TO READ: How to serialize and … Continue reading →
Posted in .net, .NET Core, c#, General .NET
|
Tagged Dynamic, ExpandoObject, JSON, Newtonsoft, Serialization
|
1 Comment
Creating dynamic arrays and lists using Dynamic and ExpandoObject in C#
In this previous post, C# Using Newtonsoft and dynamic ExpandoObject to convert one Json to another, I described how you can use the dynamic keyword and the ExpandoObject class to quickly transform JSON without the need for any concrete implementations of … Continue reading →
C# Using Newtonsoft and dynamic ExpandoObject to convert one Json to another
The scenario where you convert one input Json format to another output Json is not uncommon. Before C# dynamic and ExpandoObject you would serialize the input Json to POCO model classes and use a Factory class to convert to another … Continue reading →