I've been struggling to send a C# object as JSON array to an API endpoint.
I feel like I'm going crazy trying to solve these issues.
Here's a sample of the JSON data:
Array
(
[user_id] => 0002323445635
[order] => {"order":{"cart_items":[{"id":"23","quantity":"2","price":350,"type":"Wash and Iron","name":"Gown"},{"id":"23","quantity":"1","price":200,"type":"Iron only","name":"Gown"}],"order_details":{"pickup_address":"trans ","telephone":"08063305699","pickup_date":"18\/3\/2020","pickup_time":"1.00PM - 3.00PM","delivery_date":"5\/3\/2020","delivery_time":"7.00AM - 9.00AM","total_price":"550","total_quantity":"2"}}}
)
However, I am more familiar with serializing normal lists, and tools like Json2Csharp are flagging it as invalid JSON.