Documentation

Lean.Data.Json.FromToJson

class Lean.FromJson (α : Type u) :
Type u
Instances
class Lean.ToJson (α : Type u) :
Type u
Instances
Equations
instance Lean.instFromJsonArray {α : Type u_1} [inst : Lean.FromJson α] :
Equations
  • One or more equations did not get rendered due to their size.
instance Lean.instToJsonArray {α : Type u_1} [inst : Lean.ToJson α] :
Equations
instance Lean.instFromJsonList {α : Type u_1} [inst : Lean.FromJson α] :
Equations
instance Lean.instToJsonList {α : Type u_1} [inst : Lean.ToJson α] :
Equations
instance Lean.instFromJsonOption {α : Type u_1} [inst : Lean.FromJson α] :
Equations
instance Lean.instToJsonOption {α : Type u_1} [inst : Lean.ToJson α] :
Equations
instance Lean.instFromJsonProd {α : Type (max u_1 u_2)} {β : Type (max u_1 u_2)} [inst : Lean.FromJson α] [inst : Lean.FromJson β] :
Equations
  • One or more equations did not get rendered due to their size.
instance Lean.instToJsonProd {α : Type u_1} {β : Type u_2} [inst : Lean.ToJson α] [inst : Lean.ToJson β] :
Lean.ToJson (α × β)
Equations
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
  • 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.opt {α : Type u_1} [inst : Lean.ToJson α] (k : String) :
Equations
def Lean.Json.parseTagged (json : Lean.Json) (tag : String) (nFields : Nat) (fieldNames? : Option (Array Lean.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.