Rison Playground

Sample Data
{{ rison_error }} Format: {{ format }}
{{ json_error }}  

What is this?

This is a simple tool translate Rison data format to/from JSON.

What is Rison

Rison is a data format focus on URL friendly and compact. The structure is like JSON, but use different character for notation. It's from Mjt, a JavaScript web app library by metaweb(acquired by google). The website is no longer online. But you still can find it at archive.org. You can also visit Nanonid/rison for more information.

Who is using Rison?

As far as I know, Kibana is using it. If you know who else is using Rison, please let me know.

Rison Compare to JSON

Data from json.org and mjtemplate.org, reformatted by me.

JSON

object
{}
{ members }
members
pair
pair , members
pair
string : value
array
[]
[ elements ]
elements
value
value , elements



value

string
number
object
array
true
false
null















string
""
" chars "
chars
char
char chars
char
any-Unicode-character-
    except-"-or-\-or-
    control-character
\"
\\
\/
\b
\f
\n
\r
\t
\u four-hex-digits

number
int
int frac
int exp
int frac exp
int
digit
digit1-9 digits
- digit
- digit1-9 digits
frac
. digits
exp
e digits
digits
digit
digit digits
e
e
e+
e-
E
E+
E-

Rison

object
()
( members )
members
pair
pair , members
pair
key : value
array
!()
!( elements )
elements
value
value , elements
key
id
string
value
id
string
number
object
array
!t
!f
!n

id
idstart
idstart idchars
idchars
idchar
idchar idchars
idchar
any alphanumeric ASCII character
any ASCII character from the set -_./~
any non-ASCII Unicode character
idstart
any idchar not in
    -, digit

string
''
' strchars '
strchars
strchar
strchar strchars
strchar
any Unicode character except
    ASCII ' and !
!!
!'









number
int
int frac
int exp
int frac exp
int
digit
digit1-9 digits
- digit
- digit1-9 digits
frac
. digits
exp
e digits
digits
digit
digit digits
e
e
e-

About

This site is build by othree. If you found this is useful, you can

Buy Me a Coffee at ko-fi.com