skip to Main Content

Can Delphi 10.1 extract a JSON value into multiple categories?

I have extracted the UK Gov Bank Holidays using Delphi 10.1 with TRESTClient and TRESTRequest. This is the results (cut down version): { "england-and-wales": {"division":"england-and-wales","events": [{"title":"New Year’s Day","date":"2018-01-01","notes":"","bunting":true}, {"title":"Good Friday","date":"2018-03-30","notes":"","bunting":false}, {"title":"Christmas Day","date":"2025-12-25","notes":"","bunting":true}, {"title":"Boxing Day","date":"2025-12-26","notes":"","bunting":true}]}, "scotland": {"division":"scotland","events": [{"title":"New Year’s Day","date":"2018-01-01","notes":"","bunting":true}, {"title":"2nd…

VIEW QUESTION

Json – XSuperObject: what's wrong with this date field?

unit fmainForm; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls; type TForm1 = class(TForm) Memo1: TMemo; procedure FormCreate(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; implementation {$R *.dfm}…

VIEW QUESTION

Ebay API – IdHTTP how to send x-www-form-urlencoded body

I have tested POST function in PostMan to do POST function with body parameters as below: Here is eBay's document for this function: HTTP method: POST URL (Sandbox): https://api.sandbox.ebay.com/identity/v1/oauth2/token HTTP headers: Content-Type = application/x-www-form-urlencoded Authorization = Basic <B64-encoded-oauth-credentials> Request body:…

VIEW QUESTION
Back To Top
Search