Last active
December 7, 2016 19:16
-
-
Save edrex/23b4ff9739ee1a83108d3ecdcbffb00b to your computer and use it in GitHub Desktop.
This file contains 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
import Json.Decode as Json exposing (..) | |
j = "{\"value\":\"{\\\"foo\\\":\\\"bar\\\"}\"}" | |
decodeString (object1 (decodeString (at ["foo"] string)) (at ["value"] string)) j | |
-- Ok (Ok "bar") : Result.Result String (Result.Result String String) |
This file contains 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
hi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment