Idris2Doc : JSON.Simple.ToJSON

JSON.Simple.ToJSON

(source)
Interface and utilities for encoding Idris2 values to JSON
via an entermediate `Value` representation.

For regular algebraic data types, implementations can automatically
be derived using elaborator reflection (see module `Derive.ToJSON`)

Operators and functionality strongly influenced by Haskell's aeson
library

Definitions

interfaceToJSON : Type->Type
  Interface for encoding an Idris value as a JSON value.

Parameters: a
Constructor: 
MkToJSON

Methods:
toJSON : a->JSON

Implementations:
ToJSONJSON
ToJSONVoid
ToJSONString
ToJSONChar
ToJSONDouble
ToJSONBits8
ToJSONBits16
ToJSONBits32
ToJSONBits64
ToJSONInt8
ToJSONInt16
ToJSONInt32
ToJSONInt64
ToJSONInt
ToJSONInteger
ToJSONNat
ToJSONBool
ToJSONa=>ToJSON (Maybea)
ToJSONa=>ToJSON (Lista)
ToJSONa=>ToJSON (SnocLista)
ToJSONa=>ToJSON (List1a)
ToJSONa=>ToJSON (Vectna)
ToJSON ()
ToJSONa=>ToJSONb=>ToJSON (Eitherab)
ToJSONa=>ToJSONb=>ToJSON (a, b)
All (ToJSON.f) ts=>ToJSON (Allfts)
ToJSONKeyk=>ToJSONv=>ToJSON (SortedMapkv)
All (ToJSON.f) ts=>ToJSON (Allfts)
toJSON : ToJSONa=>a->JSON
Visibility: public export
interfaceToJSONKey : Type->Type
  Interface for encoding an Idris value as a key in a JSON object

Parameters: a
Constructor: 
MkToJSONKey

Methods:
toKey : a->String

Implementations:
ToJSONKeyString
ToJSONKeyChar
ToJSONKeyDouble
ToJSONKeyBits8
ToJSONKeyBits16
ToJSONKeyBits32
ToJSONKeyBits64
ToJSONKeyInt8
ToJSONKeyInt16
ToJSONKeyInt32
ToJSONKeyInt64
ToJSONKeyInt
ToJSONKeyInteger
ToJSONKeyNat
ToJSONKeyBool
toKey : ToJSONKeya=>a->String
Visibility: public export
jpair : ToJSONKeyk=>ToJSONa=>k->a-> (String, JSON)
Visibility: export
encode : ToJSONa=>a->String
Visibility: export
singleField : String->JSON->JSON
  Encodes a value as a single-field object. The field has the given
name.

This corresponds to the `ObjectWithSingleField` option
for encoding sum types.

Visibility: export
twoElemArray : String->JSON->JSON
  Encodes a value plus a string as a two-element array.

This corresponds to the `TwoElemArray` option
for encoding sum types.

Visibility: export
taggedObject : String->String->String->JSON->JSON
  Encodes a value plus a string as a tagged object.

This corresponds to the `TaggedObject` option
for encoding sum types.

Visibility: export
zipAllWith : ((x `p`) ->qx->rx) ->Allpxs->Allqxs->Allrxs
Visibility: export