Data.Argonaut.Core
- Package
- purescript-argonaut-core
- Repository
- purescript-contrib/purescript-argonaut-core
This module defines a data type and various functions for creating and manipulating JSON values. The README contains additional documentation for this module.
#foldJsonNull Source
foldJsonNull :: forall a. a -> (JNull -> a) -> Json -> aA simpler version of foldJson which accepts a callback for when the
Json argument was null, and a default value for all other cases.
#foldJsonBoolean Source
foldJsonBoolean :: forall a. a -> (JBoolean -> a) -> Json -> aA simpler version of foldJson which accepts a callback for when the
Json argument was a Boolean, and a default value for all other cases.
#foldJsonNumber Source
foldJsonNumber :: forall a. a -> (JNumber -> a) -> Json -> aA simpler version of foldJson which accepts a callback for when the
Json argument was a Number, and a default value for all other cases.
#foldJsonString Source
foldJsonString :: forall a. a -> (JString -> a) -> Json -> aA simpler version of foldJson which accepts a callback for when the
Json argument was a String, and a default value for all other cases.
#foldJsonArray Source
foldJsonArray :: forall a. a -> (JArray -> a) -> Json -> aA simpler version of foldJson which accepts a callback for when the
Json argument was a JArray, and a default value for all other cases.
#foldJsonObject Source
foldJsonObject :: forall a. a -> (JObject -> a) -> Json -> aA simpler version of foldJson which accepts a callback for when the
Json argument was a JObject, and a default value for all other cases.
#fromBoolean Source
fromBoolean :: JBoolean -> Json#fromNumber Source
fromNumber :: JNumber -> Json#fromString Source
fromString :: JString -> Json#fromObject Source
fromObject :: JObject -> Json#jsonSingletonArray Source
jsonSingletonArray :: Json -> Json