haskell-json icon indicating copy to clipboard operation
haskell-json copied to clipboard

Source Code for JSON Parser Video

Results 5 haskell-json issues
Sort by recently updated
recently updated
newest added

`spanP` is defined as below: ```haskell spanP :: String -- description -> (Char -> Bool) -- predicate -> Parser String spanP desc = many . parseIf desc ``` Using `many`...

1. What happening if I use this input? { "a": 1, "a": 2 } 2. How I can get a value from parsed JSON? Ex: jsonParsed = runParser $ jsonValue...

First of all, thanks @tsoding for your awesome youtube videos, really enjoyed it and learnt quite a few things from you. And here goes the story: I added a little...

Import `Data.Map.Strict` and use `Map` instead `[(String, JsonValue)]` for the `JsonObject`. As a side effect, duplicate keys are handled in `jsonObject` by `fromList` with the same behavior as JavaScript, i.e....

Reading this [issue](https://github.com/tsoding/haskell-json/issues/16), I added to the jsonObject parser the functionality to fail in case of repeated keys in the map.