[{"name":"Jsonstore","comment":"\r\n\r\n\r\n## Decoding and Encoding\r\n\r\n@docs Json, decode, encode, encodeList, decodeList, map\r\n\r\n\r\n## Basics\r\n\r\n@docs bool, int, float, string, dict\r\n\r\n\r\n## Dealing with Objects\r\n\r\n@docs object, toJson, with, withList, withMaybe\r\n\r\n\r\n## Http Requests\r\n\r\n@docs update, get, insert, delete\r\n\r\n","unions":[{"name":"Json","comment":" The Json type combines both the Json Decoder and Encoder.\r\n","args":["a"],"cases":[]}],"aliases":[],"values":[{"name":"bool","comment":"\r\n\r\n    import Json.Decode as D\r\n\r\n    \"true\"\r\n    |> (bool |> decode |> D.decodeString)\r\n    --> Ok True\r\n\r\n","type":"Jsonstore.Json Basics.Bool"},{"name":"decode","comment":" Returns the decoder of a Json type\r\n","type":"Jsonstore.Json a -> Json.Decode.Decoder a"},{"name":"decodeList","comment":" Returns the decoder for a List of a Json type\r\n","type":"Jsonstore.Json a -> Json.Decode.Decoder (List.List a)"},{"name":"delete","comment":" Deletes an Element.\r\n\r\nWill be successfull even if the content is empty.\r\n\r\n","type":"String.String -> Task.Task Http.Error ()"},{"name":"dict","comment":"\r\n\r\n    import Json.Decode as D\r\n    import Dict exposing (Dict)\r\n\r\n    \"{\\\"value\\\":42}\"\r\n    |> (int |> dict |> decode |> D.decodeString)\r\n    --> Ok (Dict.singleton \"value\" 42)\r\n\r\n","type":"Jsonstore.Json a -> Jsonstore.Json (Dict.Dict String.String a)"},{"name":"encode","comment":" Returns the encoder of a Json type\r\n","type":"Jsonstore.Json a -> a -> Json.Encode.Value"},{"name":"encodeList","comment":" Returns the encoder for a List of a Json type\r\n","type":"Jsonstore.Json a -> List.List a -> Json.Encode.Value"},{"name":"float","comment":"\r\n\r\n    import Json.Decode as D\r\n\r\n    \"3.14\" |> (float |> decode |> D.decodeString) --> Ok 3.14\r\n\r\n","type":"Jsonstore.Json Basics.Float"},{"name":"get","comment":" Gets an Element\r\n\r\nReturns `Nothing` if the element does not exist.\r\n\r\n","type":"String.String -> Json.Decode.Decoder a -> Task.Task Http.Error (Maybe.Maybe a)"},{"name":"insert","comment":" Inserts a new Element.\r\n\r\nDo not use this function to update fields, use update instead.\r\n\r\nThere is a max limit of 100kb that can be inserted at once.\r\nTherefore never try to update a full list of object,\r\nrather send an seperate update/delete file for every entry of the list.\r\n\r\n","type":"String.String -> Json.Encode.Value -> Task.Task Http.Error ()"},{"name":"int","comment":"\r\n\r\n    import Json.Decode as D\r\n\r\n    \"1\" |> (int |> decode |> D.decodeString) --> Ok 1\r\n\r\n","type":"Jsonstore.Json Basics.Int"},{"name":"map","comment":" ","type":"(a -> b) -> (b -> a) -> Jsonstore.Json a -> Jsonstore.Json b"},{"name":"object","comment":"\r\n\r\n    import Json.Decode as D\r\n\r\n    type alias Obj =\r\n        { value : Int\r\n        , name : String\r\n        }\r\n\r\n    \"{\\\"value\\\":42,\\\"name\\\":\\\"Elm\\\"}\"\r\n    |> ( object Obj\r\n        |> with \"value\" int .value\r\n        |> with \"name\" string .name\r\n        |> toJson\r\n        |> decode\r\n        |> D.decodeString\r\n        )\r\n    --> Ok {value=42,name=\"Elm\"}\r\n\r\n","type":"obj -> Jsonstore.JsonObject obj a"},{"name":"string","comment":"\r\n\r\n    import Json.Decode as D\r\n\r\n    \"\\\"Hello World\\\"\"\r\n    |> (string |> decode |> D.decodeString)\r\n    --> Ok \"Hello World\"\r\n\r\n","type":"Jsonstore.Json String.String"},{"name":"toJson","comment":" ","type":"Jsonstore.JsonObject obj obj -> Jsonstore.Json obj"},{"name":"update","comment":" First gets the value, then either inserts a new value or does nothing\r\n\r\nUse delete if you want to delete an element.\r\n\r\nThere is a max limit of 100kb that can be inserted at once.\r\nTherefore never try to update a full list of object,\r\nrather send an seperate update/delete file for every entry of the list.\r\n\r\n","type":"String.String -> Jsonstore.Json a -> (a -> a) -> Task.Task Http.Error ()"},{"name":"with","comment":" ","type":"String.String -> Jsonstore.Json a -> (obj -> a) -> Jsonstore.JsonObject (a -> fun) obj -> Jsonstore.JsonObject fun obj"},{"name":"withList","comment":" ","type":"String.String -> Jsonstore.Json a -> (obj -> List.List a) -> Jsonstore.JsonObject (List.List a -> fun) obj -> Jsonstore.JsonObject fun obj"},{"name":"withMaybe","comment":" ","type":"String.String -> Jsonstore.Json a -> (obj -> Maybe.Maybe a) -> Jsonstore.JsonObject (Maybe.Maybe a -> fun) obj -> Jsonstore.JsonObject fun obj"}],"binops":[]}]