(v any)
| 53 | } |
| 54 | |
| 55 | func (c *jsonOutput) cleanupForJSON(v any) any { |
| 56 | switch v := v.(type) { |
| 57 | case *snapshot.Manifest: |
| 58 | return c.cleanupSnapshotManifestForJSON(v) |
| 59 | case []*snapshot.Manifest: |
| 60 | return c.cleanupSnapshotManifestListForJSON(v) |
| 61 | default: |
| 62 | return v |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | func (c *jsonOutput) jsonBytes(v any) []byte { |
| 67 | return c.jsonIndentedBytes(v, "") |
no test coverage detected