You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `decodeJson` and `.?` functions provided in this module make it straightforward to interrogate the `Json` object:
37
+
38
+
```purescript
39
+
main =
40
+
log $ show $ getBars someObject
41
+
42
+
getBars :: Json -> Either String (Array String)
43
+
getBars json = do
44
+
obj <- decodeJson json
45
+
foo <- obj .? "foo"
46
+
for foo \itemJson -> do
47
+
itemObj <- decodeJson itemJson
48
+
itemObj .? "bar"
49
+
```
50
+
21
51
## Contributing
22
52
23
53
Read the [contribution guidelines](https://github.com/purescript-contrib/purescript-argonaut-codecs/blob/master/.github/contributing.md) to get started and see helpful related resources.
0 commit comments