File: .lake/packages/lean4/src/lean/Lean/Data/Json/FromToJson.lean

full_name: Lean.FromJson
code: class FromJson (α : Type u) where
  fromJson? : Json → Except String α
goal: Type u

full_name: Lean.FromJson.fromJson?
code: class FromJson (α : Type u) where
  fromJson? : Json → Except String α
goal: Lean.Json → Except String α

full_name: Lean.ToJson.toJson
code: class ToJson (α : Type u) where
  toJson : α → Json
goal: α → Lean.Json

full_name: Lean.ToJson
code: class ToJson (α : Type u) where
  toJson : α → Json
goal: Type u

full_name: Lean.instFromJsonJson
code: instance : FromJson Json 
goal: Lean.FromJson Lean.Json

full_name: Lean.instToJsonJson
code: instance : ToJson Json 
goal: Lean.ToJson Lean.Json

full_name: Lean.instFromJsonJsonNumber
code: instance : FromJson JsonNumber 
goal: Lean.FromJson Lean.JsonNumber

full_name: Lean.instToJsonJsonNumber
code: instance : ToJson JsonNumber 
goal: Lean.ToJson Lean.JsonNumber

full_name: Lean.instFromJsonBool
code: instance : FromJson Bool 
goal: Lean.FromJson Bool

full_name: Lean.instToJsonBool
code: instance : ToJson Bool 
goal: Lean.ToJson Bool

full_name: Lean.instFromJsonNat
code: instance : FromJson Nat 
goal: Lean.FromJson Nat

full_name: Lean.instToJsonNat
code: instance : ToJson Nat 
goal: Lean.ToJson Nat

full_name: Lean.instFromJsonInt
code: instance : FromJson Int 
goal: Lean.FromJson Int

full_name: Lean.instToJsonInt
code: instance : ToJson Int 
goal: Lean.ToJson Int

full_name: Lean.instFromJsonString
code: instance : FromJson String 
goal: Lean.FromJson String

full_name: Lean.instToJsonString
code: instance : ToJson String 
goal: Lean.ToJson String

full_name: Lean.instFromJsonFilePath
code: instance : FromJson System.FilePath 
goal: Lean.FromJson System.FilePath

full_name: Lean.instToJsonFilePath
code: instance : ToJson System.FilePath 
goal: Lean.ToJson System.FilePath

full_name: Lean.instFromJsonArray
code: instance [FromJson α] : FromJson (Array α) 
goal: Lean.FromJson (Array α)

full_name: Lean.instToJsonArray
code: instance [ToJson α] : ToJson (Array α) 
goal: Lean.ToJson (Array α)

full_name: Lean.instFromJsonList
code: instance [FromJson α] : FromJson (List α) 
goal: Lean.FromJson (List α)

full_name: Lean.instToJsonList
code: instance [ToJson α] : ToJson (List α) 
goal: Lean.ToJson (List α)

full_name: Lean.instFromJsonOption
code: instance [FromJson α] : FromJson (Option α) 
goal: Lean.FromJson (Option α)

full_name: Lean.instToJsonOption
code: instance [ToJson α] : ToJson (Option α) 
goal: Lean.ToJson (Option α)

full_name: Lean.instFromJsonProd
code: instance {α : Type u} {β : Type v} [FromJson α] [FromJson β] : FromJson (α × β) 
goal: Lean.FromJson (α × β)

full_name: Lean.instToJsonProd
code: instance [ToJson α] [ToJson β] : ToJson (α × β) 
goal: Lean.ToJson (α × β)

full_name: Lean.instFromJsonName
code: instance : FromJson Name 
goal: Lean.FromJson Lean.Name

full_name: Lean.instToJsonName
code: instance : ToJson Name 
goal: Lean.ToJson Lean.Name

full_name: Lean.bignumFromJson?
code: /-- Note that `USize`s and `UInt64`s are stored as strings because JavaScript
cannot represent 64-bit numbers. -/
def bignumFromJson? (j : Json) : Except String Nat 
goal: Except String Nat

full_name: Lean.bignumToJson
code: def bignumToJson (n : Nat) : Json 
goal: Lean.Json

full_name: Lean.instFromJsonUSize
code: instance : FromJson USize 
goal: Lean.FromJson USize

full_name: Lean.instToJsonUSize
code: instance : ToJson USize 
goal: Lean.ToJson USize

full_name: Lean.instFromJsonUInt64
code: instance : FromJson UInt64 
goal: Lean.FromJson UInt64

full_name: Lean.instToJsonUInt64
code: instance : ToJson UInt64 
goal: Lean.ToJson UInt64

full_name: Lean.instToJsonFloat
code: instance : ToJson Float 
goal: Lean.ToJson Float

full_name: Lean.instFromJsonFloat
code: instance : FromJson Float 
goal: Lean.FromJson Float

full_name: Lean.instToJsonRBMapString
code: instance [ToJson α] : ToJson (RBMap String α cmp) 
goal: Lean.ToJson (Lean.RBMap String α cmp)

full_name: Lean.instFromJsonRBMapString
code: instance {cmp} [FromJson α] : FromJson (RBMap String α cmp) 
goal: Lean.FromJson (Lean.RBMap String α cmp)

full_name: Lean.Json.instFromJsonStructured
code: instance : FromJson Structured 
goal: Lean.FromJson Lean.Json.Structured

full_name: Lean.Json.instToJsonStructured
code: instance : ToJson Structured 
goal: Lean.ToJson Lean.Json.Structured

full_name: Lean.Json.toStructured?
code: def toStructured? [ToJson α] (v : α) : Except String Structured 
goal: Except String Lean.Json.Structured

full_name: Lean.Json.getObjValAs?
code: def getObjValAs? (j : Json) (α : Type u) [FromJson α] (k : String) : Except String α 
goal: Except String α

full_name: Lean.Json.setObjValAs!
code: def setObjValAs! (j : Json) {α : Type u} [ToJson α] (k : String) (v : α) : Json 
goal: Lean.Json

full_name: Lean.Json.opt
code: def opt [ToJson α] (k : String) : Option α → List (String × Json)
  
goal: Option α → List (String × Lean.Json)

full_name: Lean.Json.parseTagged
code: /-- Parses a JSON-encoded `structure` or `inductive` constructor. Used mostly by `deriving FromJson`. -/
def parseTagged
    (json : Json)
    (tag : String)
    (nFields : Nat)
    (fieldNames? : Option (Array Name)) : Except String (Array Json) 
goal: Except String (Array Lean.Json)