Created
May 20, 2024 15:51
-
-
Save nickva/58ac424fe7b210b522e1e96909daf196 to your computer and use it in GitHub Desktop.
New Erlang json module, sigils and triple quoted strings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| > 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