Ejemplos
An enabled flag
An enabled flag. The input is a small public learning fixture; it contains no private production data.
Entrada
trueExpected answer
!t- Opción de codificación
Encode
An absent value
An absent value. The input is a small public learning fixture; it contains no private production data.
Entrada
nullExpected answer
!n- Opción de codificación
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.
Entrada
["v1", "v2"]Expected answer
!(v1,v2)- Opción de codificación
Encode
A dashboard filter
A dashboard filter. The input is a small public learning fixture; it contains no private production data.
Entrada
{"status": "ready", "page": 2}Expected answer
(page:2,status:ready)- Opción de codificación
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.
Entrada
"hello world"Expected answer
'hello world'- Opción de codificación
Encode
Encoding example 1
Entrada
{"any":"json","yes":true}Expected answer
(any:json,yes:!t)- Opción de codificación
Encode
Encoding example 2
Entrada
{"supportsObjects":true,"ints":435}Expected answer
ints:435,supportsObjects:!t- Opción de codificación
Encode Object
Encoding example 3
Entrada
["A","B",{"supportsObjects":true}]Expected answer
A,B,(supportsObjects:!t)- Opción de codificación
Encode Array
Object for an array
Entrada
{"supportsObjects":true,"ints":435}Expected rejection
Message containsRison Encode - rison.encode_array expects an array argument- Opción de codificación
Encode Array