1. class
|
org.json.simple Class |
Description |
|
JSONParser |
This class parses JSON text |
|
JSONValue |
This class has methods to parse JSON string into Java objects |
|
JSONObject |
It's an unordered collection of name/value pairs |
|
JSONArray |
It's an ordered sequence of values |
2. usage
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.JSONValue;
String contentStr = get(Fields.In, "test").getString(r);
JSONObject data = (JSONObject) JSONValue.parse(contentStr);
String name = (String) data.get("id");
'RDB > ETL' 카테고리의 다른 글
| PDI db 데이터 처리 로직 (0) | 2020.09.02 |
|---|---|
| PDI query 변수 처리 (0) | 2020.09.02 |
| PDI home 환경 (1) | 2020.08.19 |
| PDI 변수 지정 (0) | 2020.08.18 |
| PDI transformation (0) | 2020.08.14 |