skip to Main Content

JSON.NET – Deserialize not working correctly

I want to deserialize a response from RestResponse in C# (MAUI). request.AddBody(body); RestResponse response = await client.PostAsync(request); if (response.IsSuccessful) { var list1 = Newtonsoft.Json.JsonConvert.DeserializeObject<List<object>>(response.Content); } Here, inside the if block the response I want in a list of objects but…

VIEW QUESTION

Read Json in Pyspark

I want to read a JSON file in PySpark, but the JSON file is in this format (without comma and square brackets): {"id": 1, "name": "jhon"} {"id": 2, "name": "bryan"} {"id": 3, "name": "jane"} Is there an easy way to…

VIEW QUESTION

Json – Jolt Transformation – pull up and rename field

I am trying to write a jolt transformation with the below input: { "data": { "positions": { "positionEdge": [ { "position": { "ref": "B125AE024:1:BASE", "catalogue": { "ref": "BASE:1" } }, "cursor": "Y3Vyc29yOi0tLWMxMWYxYWQwLTE2MWEtNDNmNS05ZDM5LWMwODRiZTdiN2Q3OV9fMTY1NzQ5NTU5MTQ4Ng==" }, { "position": { "ref": "B125AE024:2:AGGREGATE", "catalogue": {…

VIEW QUESTION
Back To Top
Search