案例
An enabled flag
An enabled flag. The input is a small public learning fixture; it contains no private production data.
输入
!tExpected answer
JSONtruetrue
- 解码选项
Decode
An absent value
An absent value. The input is a small public learning fixture; it contains no private production data.
输入
!nExpected answer
JSONnullnull
- 解码选项
Decode
A list of release versions
A list of release versions. The input is a small public learning fixture; it contains no private production data.
输入
!(v1,v2)Expected answer
JSON[
"v1",
"v2"
][
"v1",
"v2"
]- 解码选项
Decode
A dashboard filter
A dashboard filter. The input is a small public learning fixture; it contains no private production data.
输入
(page:2,status:ready)Expected answer
JSON{
"page": 2,
"status": "ready"
}{
"page": 2,
"status": "ready"
}- 解码选项
Decode
A string containing a space
A string containing a space. The input is a small public learning fixture; it contains no private production data.
输入
'hello world'Expected answer
JSON"hello world""hello world"
- 解码选项
Decode
Decoding example 1
输入
(any:json,yes:!t)Expected answer
JSON{
"any": "json",
"yes": true
}{
"any": "json",
"yes": true
}- 解码选项
Decode