Rison Encoder

Encode data using Rison and the selected options.

Input: Structured JSONResult: Text

Text input

Run to see the result

Examples

An enabled flag

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

Input

true

Expected answer

!t
Encode Option
Encode
An absent value

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

Input

null

Expected answer

!n
Encode Option
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)
Encode Option
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)
Encode Option
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'
Encode Option
Encode
Encoding example 1

Input

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

Expected answer

(any:json,yes:!t)
Encode Option
Encode
Encoding example 2

Input

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

Expected answer

ints:435,supportsObjects:!t
Encode Option
Encode Object
Encoding example 3

Input

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

Expected answer

A,B,(supportsObjects:!t)
Encode Option
Encode Array
Object for an array

Input

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

Expected rejection

Message contains
Rison Encode - rison.encode_array expects an array argument
Encode Option
Encode Array

Format reference: Rison Encode background and specification

Related tools

Browse data format tools