1 StorageFormatSyntax
Booklordofthedings edited this page 2025-06-20 22:12:48 +02:00

Some useful file syntaxe's

Bofa

# My own format
# [Type] [Name] [Value]
l key value
t multilineString asdasd
	-asdasdsad
	-asdsadasdasd
a array
	l key_1 value_1
	l key_2 value_2
	l key_1 value_2
# duplicate keys only work in arrays, not objects

JSON

The son everyone hates

{
	"key":"value",
	"key_2":true
	"key_3": 2312312.3
	"key_4": {
		"member":"value"
		"array_key": [
			"key",
			"asdsad\"escape caharcter"
		]
	}
}

TOML

key = "value"
str1 = """
Roses are red
Violets are blue"""

integers = [ 1, 2, 3 ]
colors = [ "red", "yellow", "green" ]
nested_arrays_of_ints = [ [ 1, 2 ], [3, 4, 5] ]
nested_mixed_array = [ [ 1, 2 ], ["a", "b", "c"] ]

[table-1]
key1 = "some string"
key2 = 123

name = { first = "Tom", last = "Preston-Werner" }

XML


<note>
  <date>2015-09-01</date>
  <hour>08:30</hour>
  <to>Tove</to>
  <from>Jani</from>
  <body>Don't forget me this weekend!</body>
</note>