Mit Rison kodieren

Codiert die Eingabe mit “Rison” gemäß dem entsprechenden Standard.

Eingabe: Strukturiertes JSONErgebnis: Text

Texteingabe

Ausführen, um das Ergebnis zu sehen

Beispiele

An enabled flag

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

Eingabe

true

Expected answer

!t
Option kodieren
Encode
An absent value

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

Eingabe

null

Expected answer

!n
Option kodieren
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.

Eingabe

["v1", "v2"]

Expected answer

!(v1,v2)
Option kodieren
Encode
A dashboard filter

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

Eingabe

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

Expected answer

(page:2,status:ready)
Option kodieren
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.

Eingabe

"hello world"

Expected answer

'hello world'
Option kodieren
Encode
Encoding example 1

Eingabe

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

Expected answer

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

Eingabe

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

Expected answer

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

Eingabe

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

Expected answer

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

Eingabe

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

Expected rejection

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

Ähnliche Werkzeuge

Datenformat

Referenz zur Operation

Technische Originaldokumentation ansehen (English)