diff --git a/lib/quby/compiler/instance.rb b/lib/quby/compiler/instance.rb index 104be626c3f6ed825d9ea11aa76f3e86306aba27..2939c60194dc005998cee410b1379138fc400891 100644 --- a/lib/quby/compiler/instance.rb +++ b/lib/quby/compiler/instance.rb @@ -36,7 +36,7 @@ module Quby roqua: Output.new( key: :roqua, filename: "roqua.json", - content: Outputs::RoquaSerializer.new(questionnaire).to_json, + content: JSON.pretty_generate(Outputs::RoquaSerializer.new(questionnaire).as_json) ), seeds: Output.new( key: :seeds, @@ -46,12 +46,12 @@ module Quby quby_frontend_v1: Output.new( key: :quby_frontend_v1, filename: "quby-frontend-v1.json", - content: Outputs::QubyFrontendV1Serializer.new(questionnaire).to_json, + content: JSON.pretty_generate(Outputs::QubyFrontendV1Serializer.new(questionnaire).as_json), ), quby_frontend_v2: Output.new( key: :quby_frontend_v2, filename: "quby-frontend-v2.json", - content: Outputs::QubyFrontendV2Serializer.new(questionnaire).to_json, + content: JSON.pretty_generate(Outputs::QubyFrontendV2Serializer.new(questionnaire).as_json), ), }, }