Equations
- Lean.Json.escape s = String.foldl Lean.Json.escapeAux "" s
Equations
- Lean.Json.renderString s = "\"" ++ Lean.Json.escape s ++ "\""
Equations
- Lean.Json.pretty j lineWidth = Lean.Format.pretty (Lean.Json.render j) lineWidth
- json: Lean.Json → Lean.Json.CompressWorkItem
- arrayElem: Lean.Json → Lean.Json.CompressWorkItem
- arrayEnd: Lean.Json.CompressWorkItem
- objectField: String → Lean.Json → Lean.Json.CompressWorkItem
- objectEnd: Lean.Json.CompressWorkItem
- comma: Lean.Json.CompressWorkItem
Equations
- Lean.Json.compress j = Lean.Json.compress.go "" [Lean.Json.CompressWorkItem.json j]
Equations
- Lean.Json.instToFormatJson = { format := Lean.Json.render }
Equations
- Lean.Json.instToStringJson = { toString := fun j => Lean.Json.pretty j }