Documentation

Lean.Data.Json.FromToJson

class Lean.FromJson (α : Type u) :
Instances
    class Lean.ToJson (α : 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 (maxu_1u_2)} {β : Type (maxu_1u_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.

      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
      • One or more equations did not get rendered due to their size.
      instance Lean.instToJsonRBMapString {α : Type} {cmp : StringStringOrdering} [inst : Lean.ToJson α] :
      Equations
      Equations
      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.