I would like to know if there is a quicker and direct way to read and write in C# ASP NET Core without having to create classes of JSON data models.
Consider the following JSON data received from an API. Is there a way to read fields as strings directly without having to deserialize them using JsonSerializer?
{
"data": [
{
"id": "100285832430"
},
{
"id": "102602230220"
}
],
"paging": {
"cursors": {
"before": "MTAwMTIxMDMyNDMw",
"after": "MTAyNjY4NzAyMjIw"
}
}
}
Thank you