skip to Main Content

Filtering Json response updating mongodb database

I'm trying to filter a json response and use the filtered response to update several documents in my mongodb collection. The Json response looks like this: {"88996940":{"charge":"5","start_count":"10","status":"Completed","remains":"90","currency":"USD"}, "88996961":{"charge":"8","start_count":"50","status":"Completed","remains":"50","currency":"USD"}, "88999796":{"charge":"7","start_count":"80","status":"Completed","remains":"20","currency":"USD"}} "88996940","88996961" and "88999796" are the order id's. I want to filter…

VIEW QUESTION

Json – C# Not able to post data using HttpRequestMessage and getting 400 status

I tried a few different ways I can't get pipelineId to post (receive 400), see code below: { client.BaseAddress = new Uri(_serviceConfig.DataGapsBaseUrl); var request = new HttpRequestMessage(HttpMethod.Post, "/piper/jobs"); var jsonContent = new StringContent(JsonConvert.SerializeObject(new { pipelineId = _serviceConfig.DataPipelineId }), Encoding.UTF8, "application/json");…

VIEW QUESTION
Back To Top
Search