1
0
Fork
You've already forked GOON
0
No description
2025年11月07日 17:10:13 +01:00
README.md ver 1 2025年11月07日 17:10:13 +01:00

GO Object Notation (GOON)

The best ever object notation in existance, made 100% for your convenience and without bullshit

Name

Since JSON is JavaScript Object Notation, and JavaScript is unrelated to Java but still has it in the name, we skipped the middleman, and we just use name of an unrelated language.

Specification (v1)

In the Extended Backus-Naur Form:

data = value | dict | array ;
value = (value-identifier, quoted-string) | truthy-bool | falsy-bool ;
quoted-string = '"', { any-character-except-quote | escaped-quote }, '"' ; 
value-identifier = string-identifier | numerical-identifier | binary-identifier ;
string-identifier = 's' ;
numerical-identifier = 'n' ;
binary-identifier = 'b' ;
boolean-identifier = 'bb' ;
truthy-bool = boolean-identifier, quoted-string ;
falsy-bool = boolean-identifier, '""' ;
dict = ":--(", [ dict_entries ], ")" ;
dict_entries = dict_entry, { "::", dict_entry } ;
dict_entry = value, "3=>", data ;
array = "]", [ array_entries ], "[" ;
array_entries = data, { "|", data } ;

Examples:

array storing numbers:

] n"21" | n"37" | n"6" | n"9" [

dictionary associating ID number with name:

:--( n"1" 3=> s"Name1" :: n"2" 3=> s"Name2")

configuration with booleans:

:--( s"enabled_value" 3=> bb"whatever" :: s"disabled_value" 3=> bb"" )