Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- C# SendMessage
- RichEditControl Bold
- ColumnHead MultiLine
- C# 0x8001010d
- C# 빌드이벤트
- visualstudio 관리자권한
- delphi JSON
- C#
- RichEditControl
- C# 매크로
- C# 컬럼비교
- drawgrid
- Delphi
- C# Devexpress CheckListBoxControl word wrap
- C# linq pivot
- C# build
- 해운대밀면
- Row Indicator
- 델파이
- CustomDrawColumnHeader
- devexpress grid
- C# Devexpress CheckListBoxControl 줄 바꿈
- DataTable ReadOnly
- C# DataTable linq
- 밀면
- C# column
- C# Devexpress
- C# WndProc
- 밀고
- mssql 문자열 합치기
Archives
- Today
- Total
개발자의 사투
델파이 JSON 파일 읽기(delphi Json File Read) 본문
uses
System.IOUtils;
var
aJsonObject: TJTJSONObject;
aJsonArray : TJSONArray;
data: TBytes;
tempString: String;
begin
aJsonObject:= nil;
aJsonArray := nil;
data := TEncoding.ASCII.GetBytes(TFile.ReadAllText('FILE_PATH' + 'sampleTest.json'));
tempString := TEncoding.UTF8.GetString(data);
apaging := TJSONObject.ParseJSONValue(tempString) as TJSONObject;
aList := apaging.GetValue('list') as TJSONArray;
FreeAndNil(apaging);
end;
==========================sampleTest.json==========================
{"list": [{
"TEST1": 1,
"TEST2": 2,
"TEST3": 3,
},
{
"TEST1": 4,
"TEST2": 5,
"TEST3": 6,
}]
}
==========================sampleTest.json==========================
'컴방 > 델파이' 카테고리의 다른 글
델파이 Grid Scroll 자연스럽게 하기 (0) | 2020.01.30 |
---|---|
델파이 BorderStyle속성 string으로 변경하기 (0) | 2020.01.23 |
델파이 폼 리사이즈 delphi Form Resize (0) | 2020.01.21 |
델파이 클릭, 더블클릭 구분 (0) | 2020.01.15 |
델파이 객체 자동 Free (0) | 2020.01.14 |
Comments