skip to Main Content

Json – How to extracting only the Token from RestAPI response

I have this code that gets the token from RestAPI // Prepare JSON content var content = new StringContent(jsonContent, Encoding.UTF8, "application/json"); HttpResponseMessage response = await client.PostAsync(tokenEndpoint, content); if (response.IsSuccessStatusCode) { string responseBody = await response.Content.ReadAsStringAsync(); Console.WriteLine("Token received: " + responseBody);…

VIEW QUESTION

Json – CSV data format to nested dictionary

I have below csv format. I want it to convert some nested dict. name,columns,tests ABC_ESTIMATE_REFINED,cntquota,dbt_expectations.expect_column_to_exist ABC_ESTIMATE_REFINED,cntquota,not_null ABC_ESTIMATE_REFINED,is_purged,dbt_expectations.expect_column_to_exist ABC_ESTIMATE_REFINED,is_purged,not_null Expected Output { "name": "ABC_ESTIMATE_REFINED", "columns": [ { "name": "cntquota", "tests": [ "dbt_expectations.expect_column_to_exist", "not_null" ] }, { "name": "is_purged", "tests": [ "dbt_expectations.expect_column_to_exist",…

VIEW QUESTION
Back To Top
Search