Esempi
An enabled flag
An enabled flag. The input is a small public learning fixture; it contains no private production data.
Input
trueExpected answer
!t- Opzione di codifica
Encode
An absent value
An absent value. The input is a small public learning fixture; it contains no private production data.
Input
nullExpected answer
!n- Opzione di codifica
Encode
A list of release versions
A list of release versions. The input is a small public learning fixture; it contains no private production data.
Input
["v1", "v2"]Expected answer
!(v1,v2)- Opzione di codifica
Encode
A dashboard filter
A dashboard filter. The input is a small public learning fixture; it contains no private production data.
Input
{"status": "ready", "page": 2}Expected answer
(page:2,status:ready)- Opzione di codifica
Encode
A string containing a space
A string containing a space. The input is a small public learning fixture; it contains no private production data.
Input
"hello world"Expected answer
'hello world'- Opzione di codifica
Encode
Encoding example 1
Input
{"any":"json","yes":true}Expected answer
(any:json,yes:!t)- Opzione di codifica
Encode
Encoding example 2
Input
{"supportsObjects":true,"ints":435}Expected answer
ints:435,supportsObjects:!t- Opzione di codifica
Encode Object
Encoding example 3
Input
["A","B",{"supportsObjects":true}]Expected answer
A,B,(supportsObjects:!t)- Opzione di codifica
Encode Array
Object for an array
Input
{"supportsObjects":true,"ints":435}Expected rejection
Message containsRison Encode - rison.encode_array expects an array argument- Opzione di codifica
Encode Array