Winsoft Delphi and C++ Builder JavaScript Object Notation (JSON) library
- Brand: Winsoft
- Product Code: Delphi and C++ Builder JavaScript Object Notation (JSON) library
- Availability: In Stock
Delphi and C++ Builder JavaScript Object Notation (JSON) library
Read json file:
var
Json
:
TJson
;
with
TJsonParser
.
Create
do
try
Json
:=
ParseUtf8File
(
'c:\data.json'
)
;
try
ShowMessage
(
Json
.
ToString
)
;
finally
Json
.
Free
;
end
;
finally
Free
;
end
;
Create new json file:
var
MyArray
:
TJsonArray
;
MyObject
:
TJsonObject
;
with
TJsonObject
.
Create
do
try
SetNull
(
'Null'
)
;
SetTrue
(
'True'
)
;
SetFalse
(
'False'
)
;
SetNumber
(
'Number'
,
1.23
)
;
SetString
(
'String'
,
'hello'
)
;
SetDateTime
(
'DateTime'
,
Now
)
;
MyArray
:=
SetArray
(
'Array'
,
3
)
;
MyArray
.
SetString
(
0
,
'First item'
)
;
MyArray
.
SetString
(
1
,
'Second item'
)
;
MyArray
.
SetNumber
(
2
,
3.21
)
;
MyObject
:=
SetObject
(
'Object'
)
;
MyObject
.
SetString
(
'First Member'
,
'Hello'
)
;
MyObject
.
SetString
(
'Second Member'
,
'World'
)
;
MyObject
.
SetFalse
(
'Third Member'
)
;
MyObject
.
SetTrue
(
'Fourth Member'
)
;
MyObject
.
SetNumber
(
'Other Member'
,
1.11
)
;
ShowMessage
(
ToString
)
;
ToUtf8File
(
'c:\new.json'
)
;
finally
Free
;
end
;
- full JSON supported: literals, numbers, strings, arrays and objects
- date/time encoding and decoding supported
- customizable output
- provides in-memory and streaming JSON parsers and generators
- supports Windows, macOS, iOS and Android
- available for Delphi/C++ Builder 6 - 10.4 and Lazarus 2.0.8
- source code included in registered version
- royalty free distribution in applications
Buy at Tokopedia!
Buy Now!Tags: Winsoft Delphi and C++ Builder JavaScript Object Notation (JSON) library, delphi, c++ builder, Web Application Framework library, winsoft, json