Skip to content

Instantly share code, notes, and snippets.

@nickva
Created May 20, 2024 15:51
Show Gist options
  • Select an option

  • Save nickva/58ac424fe7b210b522e1e96909daf196 to your computer and use it in GitHub Desktop.

Select an option

Save nickva/58ac424fe7b210b522e1e96909daf196 to your computer and use it in GitHub Desktop.
New Erlang json module, sigils and triple quoted strings
> json:decode(~"""
{"a":"b", "c":true, "d":42, "e":1.2, "f":false, "g":null}
""").
#{<<"a">> => <<"b">>,<<"c">> => true,<<"d">> => 42,
<<"e">> => 1.2,<<"f">> => false,<<"g">> => null}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment