skip to Main Content

Json – How to create a c# object and serialize it

In C# I want to created JSON String or Object with the format below: { "retailer_br_id" : "5473182", "retailer_external_id": "", "erp_invoice_number" : "INV-202302", "invoice_date": "2023-04-06T17:00:00.000Z", "status" : 1, "details":[{ "sku_external_id": "TD5015151432201", "quantity" : "2", "price_per_item": "14.5" }, { "sku_external_id": "000005020170898446",…

VIEW QUESTION

403 Forbidden on Server (API, Laravel) – Php versions

local works but in production it returns 403. Same PHP and Laravel version. Is there anything i can do? $url = 'https://admin.appmax.com.br/api/v3/order/'.$order_id.'?access-token='.$token; $curl = curl_init(); curl_setopt_array($curl, [ CURLOPT_URL => $url, CURLOPT_HTTPHEADER => ['Content-Type: application/json'], CURLOPT_CUSTOMREQUEST => 'GET', CURLOPT_POST => true,…

VIEW QUESTION

WordPress Rest Api Meta description

I am sending posts with wordpress rest api. But I can't send meta description. where did i go wrong. wp_api_url = "https://xxxxx.com/wp-json/wp/v2/posts" wp_auth_token = "xxxxxxx" import requests meta = { "description": "test description", "keywords": "test keywords", "tags": "test Tag" }…

VIEW QUESTION

Encountering json decode error with python

So I needed help because my json is wrong and I need to fix it with the code itself. The JSON is : {"3704969059":{"Lunar Moth Headwings",100,1680750150,500,"https://tr.rbxcdn.com/5c0a02da770746e4ac9a1760d427f716/150/150/Hat/Png"},"13114264635":{"Cow Beret",70,1682603172,200,"https://tr.rbxcdn.com/7d39a32f04f00844113f4b3ab355517a/150/150/Hat/Png"},"13160317604":{"Insignia Helmet",2500,1682593511,25,"https://tr.rbxcdn.com/55feabd27486feb51eb4f0db2209fecf/150/150/Hat/Png"}} The error is json.decoder.JSONDecodeError: Expecting ':' delimiter: line 1 column 38 (char…

VIEW QUESTION
Back To Top
Search