Skip to content

Instantly share code, notes, and snippets.

@dmjio
Created August 26, 2022 18:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmjio/2e94862988830dfd7e4bd51d29c1a9ba to your computer and use it in GitHub Desktop.
Save dmjio/2e94862988830dfd7e4bd51d29c1a9ba to your computer and use it in GitHub Desktop.
-- λ> :kind! Decode "{ \"a\" : null, \"hey\" : \"lol\", \"sub\" : { \"subObj\" : [\"foo\",true], \"key\" : false }}" :: Value
= 'Object
'[ '("a", 'Null), '("hey", 'JString "lol"),
'("sub",
'Object
'[ '("subObj", 'Array '[ 'JString "foo", 'Bool 'True]),
'("key", 'Bool 'False)])]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment