diff --git a/render/json.go b/render/json.go index fc8dea45..80e0a9eb 100644 --- a/render/json.go +++ b/render/json.go @@ -19,6 +19,10 @@ type JSON struct { Data any } +func NewJSON(data any) Render { + return &JSON{Data: data} +} + // IndentedJSON contains the given interface object. type IndentedJSON struct { Data any