0👍
✅
Using Newtonsoft package you can cast the json to [JObject] and then access the properties.
It’s also possible to create custom handlers for deserialization.
0👍
Sebastians answer is the right one. Aditional I figured out the problem regarding to formatting the anonymous type in VS.
Visual Studio 2022 has a problem to format the anonymous type of JSON string in razor components view. Create the object in code behind will fix this problem.
Source:stackexchange.com