diff --git a/src/compiler/crystal/tools/doc/constant.cr b/src/compiler/crystal/tools/doc/constant.cr index e14d34455f9c..2844fc6e2de1 100644 --- a/src/compiler/crystal/tools/doc/constant.cr +++ b/src/compiler/crystal/tools/doc/constant.cr @@ -27,6 +27,7 @@ class Crystal::Doc::Constant def to_json(builder : JSON::Builder) builder.object do + builder.field "name", name builder.field "value", value.try(&.to_s) builder.field "doc", doc builder.field "summary", formatted_summary