Documentation

Lean.Data.Json.FromToJson

class Lean.FromJson (α : Type u) :
Instances
class Lean.ToJson (α : Type u) :
  • toJson : αJson
Instances
Equations
  • One or more equations did not get rendered due to their size.
Equations
Equations
instance Lean.instFromJsonArray {α : Type u_1} [FromJson α] :
Equations
  • One or more equations did not get rendered due to their size.
instance Lean.instToJsonArray {α : Type u_1} [ToJson α] :
Equations
instance Lean.instFromJsonList {α : Type u_1} [FromJson α] :
Equations
instance Lean.instToJsonList {α : Type u_1} [ToJson α] :
Equations
instance Lean.instFromJsonOption {α : Type u_1} [FromJson α] :
Equations
instance Lean.instToJsonOption {α : Type u_1} [ToJson α] :
Equations
instance Lean.instFromJsonProd {α : Type u} {β : Type v} [FromJson α] [FromJson β] :
FromJson (α × β)
Equations
  • One or more equations did not get rendered due to their size.
instance Lean.instToJsonProd {α : Type u_1} {β : Type u_2} [ToJson α] [ToJson β] :
ToJson (α × β)
Equations
Equations
  • One or more equations did not get rendered due to their size.

Note that USizes and UInt64s are stored as strings because JavaScript cannot represent 64-bit numbers.

Equations
  • One or more equations did not get rendered due to their size.
Equations
  • One or more equations did not get rendered due to their size.
Equations
  • One or more equations did not get rendered due to their size.
Equations
Equations
  • One or more equations did not get rendered due to their size.
instance Lean.instToJsonRBMapString {α : Type} {cmp : StringStringOrdering} [ToJson α] :
Equations
instance Lean.instFromJsonRBMapString {α : Type} {cmp : StringStringOrdering} [FromJson α] :
Equations
  • One or more equations did not get rendered due to their size.
Equations
  • One or more equations did not get rendered due to their size.
Equations
  • One or more equations did not get rendered due to their size.
def Lean.Json.setObjValAs! (j : Json) {α : Type u} [ToJson α] (k : String) (v : α) :
Equations
def Lean.Json.parseTagged (json : Json) (tag : String) (nFields : Nat) (fieldNames? : Option (Array Name)) :

Parses a JSON-encoded structure or inductive constructor. Used mostly by deriving FromJson.

Equations
  • One or more equations did not get rendered due to their size.