Rison 編碼

按照相應標准将輸入Rison 編碼。

輸入: 結構化 JSON結果: 文本

文本輸入

執行後查看結果

範例

An enabled flag

An enabled flag. The input is a small public learning fixture; it contains no private production data.

輸入

true

Expected answer

!t
編碼選項
Encode
An absent value

An absent value. The input is a small public learning fixture; it contains no private production data.

輸入

null

Expected answer

!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.

輸入

["v1", "v2"]

Expected answer

!(v1,v2)
編碼選項
Encode
A dashboard filter

A dashboard filter. The input is a small public learning fixture; it contains no private production data.

輸入

{"status": "ready", "page": 2}

Expected answer

(page:2,status:ready)
編碼選項
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.

輸入

"hello world"

Expected answer

'hello world'
編碼選項
Encode
Encoding example 1

輸入

{"any":"json","yes":true}

Expected answer

(any:json,yes:!t)
編碼選項
Encode
Encoding example 2

輸入

{"supportsObjects":true,"ints":435}

Expected answer

ints:435,supportsObjects:!t
編碼選項
Encode Object
Encoding example 3

輸入

["A","B",{"supportsObjects":true}]

Expected answer

A,B,(supportsObjects:!t)
編碼選項
Encode Array
Object for an array

輸入

{"supportsObjects":true,"ints":435}

Expected rejection

Message contains
Rison Encode - rison.encode_array expects an array argument
編碼選項
Encode Array

相关工具

資料格式

操作参考

查看原始技术文檔 (English)