#1 Working with JSON Data
The samples can differ based on your Razor base class or if you're running an old version.
Switch to Typed (2sxc 16+) Switch to Dynamic (Razor14 or below)
Switch to Typed (2sxc 16+) Switch to Dynamic (Razor14 or below)
Working with JSON Data
JSON data can be tricky. The easiest way is to convert it to a dynamic object using AsDynamic(string)
. Then you can easily use it in your code.
#1 Working with JSON Data