Documentation

Lean.Data.Json.FromToJson

class Lean.FromJson (α : Type u) :
Instances
    class Lean.ToJson (α : Type u) :
    Instances
      instance Lean.instFromJsonProd {α : Type u} {β : Type v} [Lean.FromJson α] [Lean.FromJson β] :
      instance Lean.instToJsonProd {α : Type u_1} {β : Type u_2} [Lean.ToJson α] [Lean.ToJson β] :
      Lean.ToJson (α × β)

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

      Instances For
        Instances For
          Instances For
            def Lean.Json.setObjValAs! (j : Lean.Json) {α : Type u} [Lean.ToJson α] (k : String) (v : α) :
            Instances For
              def Lean.Json.opt {α : Type u_1} [Lean.ToJson α] (k : String) :
              Instances For
                def Lean.Json.parseTagged (json : Lean.Json) (tag : String) (nFields : Nat) (fieldNames? : Option (Array Lake.Name)) :

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

                Instances For