skip to Main Content

Json – why are properties in my response object set to null?

I have this endpoint method: var authToken = await [url] .AddAuthHeaders(config) .PostJsonAsync(new AuthTokenRequest { GrantType = "test", ClientId = "test", ClientSecret = "test", Audience = "test" }) .ReceiveJson<AuthTokenResponse>(); It's calling this endpoint: [HttpPost] public IActionResult Get([FromBody] object request) { try…

VIEW QUESTION

Get data as object after form submit in jQuery

I am building a website that can send custom data after submission with the below code. $('form').submit((e)=>{ e.preventDefault(); let data = $('form').serializeArray(); console.log(data); $.ajax({ url: 'path/to/submit', type: 'POST', data: data, success: (res) => { console.log(res); } }) }); form {…

VIEW QUESTION

Parsing JSON into Oracle type with nested table

Is there a way to make this Oracle query more optimal? Ideally without selecting from the same JSON_TABLE twice. SELECT to_dncl_verification(status_code => t.status, d_valid_from => to_date(t.d_valid_from, 'yyyy-mm-dd'), d_valid_to => to_date(t.d_valid_to, 'yyyy-mm-dd'), category_list => CAST( MULTISET (SELECT tc.category, CASE WHEN tc.allowed…

VIEW QUESTION

JSON to Datatable: Error converting Value

I have this JSON, which is valid according to JSONbeautify.com : { "date_check": "2023-04-05", "updated_datas": [ { "FIELD_NAME": "BLN_ADS_LINKS_DETECTED", "NEW_VALUE": false, "OLD_VALUE": true }, { "FIELD_NAME": "ADS_LINKS_DETECTED", "NEW_VALUE": null, "OLD_VALUE": "?" } ] } I'd like to display it in…

VIEW QUESTION
Back To Top
Search