RAD Studio has offered support for JSON in different ways and for a long time. From the JSON system unit (originally part of the DBX space) to the old DataSnap table mapping (also via DBX) and to FireDAC tables to JSON mapping, there are many ways to interact with JSON data structures. However, until the most recent release, we lacked a way to map a dataset to a custom JSON structure — the…
Author: h.mohri
Output toJSON Base64 ImageData Reading Browser.I useExt JS. And theJSON serverisC++Builder bcc32.
Create a standalone new project for WebBroker.
Add action on TWebModule side.
PathInfo is set…
Implementing AJAX and JSONP Support in RAD Server for ExtJS
October 19, 2017
Idera recently acquired Sencha (https://www.sencha.com/) and has added the company products to the Embarcadero business unit, which produced RAD Studio and also the RAD Server web service technology. A natural question arises on how to use the two products together. While…
Generate Cross Platform Dynamic Forms At Runtime From JSON In Delphi 10.2.1 Tokyo
September 19, 2017
The Hospitality Survey Client project is part of the Hospitality Survey App template for Delphi 10.2.1 Tokyo that Embarcadero has released through their GetIt platform. The Hospitality Survey App consists of four different projects. In this blog post I will cover thedynamic form generator that is built into the Hospitality Survey Client project. Also keep in mind that the client can be…
Learn How To Use AngularJS To Quickly And Easily Connect And Consume JSON From RAD Server
September 13, 2017
The Hospitality SurveyAdmin dashboardproject is part of the Hospitality Survey App template for Delphi 10.2 Tokyo that Embarcadero has released through their GetIt platform. The Hospitality Survey App consists of four different projects. In this blog post I am…
Convert CSV file to TFDMemTable format JSON file.
September 1, 2017
Author: h.mohri
Convert fromCSVfile to “JSONfile” of “TFDMemTable format”.
This program usesC++Builder 10.2 Tokyo Release 1.
include
#include <iostream>
#include <fstream>
#include <string>
#include…
Use TRESTDataSetAdapter with arbitrary JSON
June 23, 2017
One basic questionI get asked is howcan I convert arbitrary JSON into some kind of data structure such that I can extract useful data?
One solution is to use the TRESTDataSetAdapter with arbitrary JSON.
TheTRESTDataSetAdapterandTClientDataSetcomponents convert theJSONrepresentation into a dataset.
The TRESTDataSetAdapter has many nice…
Visualize JSON using TTreeView
May 27, 2017
Author: h.mohri
I tried a program that reads a JSON file in C++Builder VCL and displays it in TTreeView component.
This project file is open to public from github.
github.com/mojeld
https://www.microsoft.com/store/productid/9PLPHK05PJF7
Place two…
10.2 Tokyo TJsonSerializer and JSON.Converters
April 4, 2017
Author: h.mohri
First declare with Pascal to use the converter and generics.
////
unit Unit2;
interface
uses
System.JSON.Converters, System.JSON.Serializers, System.Generics.Collections;
type
TListString = TList<String>;
TDictionaryStrStr =…
Using Delphi, from Excel to JSON, then FireDAC[JAPAN]
February 7, 2017
Author: John D7279
////
class function ExcelToJson(cells: TRect; excel_filename, sheet_name: String):TJSONObject;
It is a code for excel to JSON.
////
class function TExcelToFireDAC.ExcelToJson(cells: TRect; excel_filename, sheet_name: String): TJSONObject;
const
def_excel_application = 'Excel.Application';
var
jres: TJSONObject;
jline: TJSONObject;
ExcelApp…