4
APPLICATION EXAMPLE
4.1
Acquiring Value String from JSON String
This chapter describes the procedure to acquire the Value string from the JSON string.
In the following example, M+StrProcessing_JSONDeserialize_F (Acquisition of JSON string) is used.
Overview
The Value string corresponding to the specified Key string is acquired from the JSON string.
Ex.
{
"id1": 3544528813,
"id2": 1000006554,
"date": "2022/12/21",
"detail": {
"size": [125, 128, 180, 179],
"weight": 256.4,
"color_No.": "E051"
}
}
Key string
id1
date
detail
size
color_No.
4 APPLICATION EXAMPLE
22
4.1 Acquiring Value String from JSON String
Key string for
items to acquire
the Value string
Type of Value
Numerical value
String
Object
Array
String
Depth of hierarchy
1
1
1
2
2