skip to Main Content

How to make a nested dict (json) from a schema database xml?

Here is my input file.xml : <?xml version="1.0" encoding="UTF-8" ?> <project name="so_project" id="Project-9999"> <schema name="database1"> <table name="table1"> <column name="foo" type="int"/> <column name="bar" type="string"/> <column name="details_resolution" type="array[object]"> <column name="timestamp" type="timestamp"/> <column name="user_id" type="string"/> <column name="user_name" type="string"/> </column> <column name="details_closure" type="array[object]"> <column…

VIEW QUESTION

JSON is getting serialized with WriteAsJsonAsync

I am calling an API with : content = await request.Content.ReadAsStringAsync(); var response = req.CreateResponse(request.StatusCode); await response.WriteAsJsonAsync(content, request.StatusCode); return response; and it seems to be ok and working but the JSON is coming out like this: "{"Policy_reference":"P12300025"}" full code: var…

VIEW QUESTION
Back To Top
Search