json icon indicating copy to clipboard operation
json copied to clipboard

Work with JSON in Elm

Results 22 json issues
Sort by recently updated
recently updated
newest added

This PR `map2` takes a type constructor function as its first argument. ### Why? If you don't know that a type alias generates a record constructor for you, then it's...

Hello! I'm working with dictionaries of character-based keys. Encoding them is straight-forward, as I simply have to convert keys from characters to strings. No problem! Writing the decoder for this...

## SSCCE ```elm result = Json.Decode.decodeValue (Json.Decode.dict Json.Decode.string) jsValue ``` when `jsValue` has been created in JavaScript using `Object.create(null)` and sent through flags or a port. Attempting the decoding above...

When one is passing an object with circular dependencies from JS to Elm and then calls `Json.Encode.encode` on the `Value` you get a runtime Error from within Elm. Of course...

If the index given to `Json.Decode.index` is too large we get this message: ``` > JD.decodeString (JD.index 1 JD.int) """[1]""" |> Result.mapError JD.errorToString Err ("Problem with the given value:\n\n[\n 1\n...

`TouchList` in touch events is an "array like" object, just like `FileList`. ![image](https://user-images.githubusercontent.com/8900986/50784593-57e8e100-12ae-11e9-9a9b-8164fc21bfe8.png) I am currently using `Json.Decode.keyValuePairs` to decode `TouchList` but at first it was confusing why I couldn't...

At the moment there's a kernel panick ``` $ elm --version 0.19.0 $ elm-json --version elm-json 0.2.0 $ RUST_BACKTRACE=1 elm-json install krisajenkins/elm-dialog thread 'main' panicked at 'called `Option::unwrap()` on a...

It feels odd that elm/json talks about deaths in its introduction example. Picture a person which just lost one of their relatives. Alternative ideas: * Temperature data in different countries...

## Issue There seems to be an issue with [list equality check]. It looks like the function functions want to work with lists (JS arrays) to get a length of...

Closes #33 Maybe it would be worth discussing the exact API to publish. I personally think it is fine to add a function like `stringAs : Decoder a -> Decoder...