JSON as NIX
name | JSON | NIX |
---|---|---|
null | null | null |
bool | true | true |
int | 123 | 123 |
float | 12.3 | 12.3 |
string | "string" | "string" |
array | ["some","array"] | ["some" "array"] |
object | {"some":"value"} | { some = "value"; } |
multiline-string | ''... multiline string ... '' | |
variables | let my-var = 1; other-var = 2; in my-var + other-var | |
function | my-arg: "Hello ${my-arg}!" | |
variable-function | let my-function = my-arg: "Hello ${my-arg}!"; in ... | |
calling-a-function | ... in my-function "World" |