Skip to content
Snippets Groups Projects
Commit 0bdefe62 authored by Per 29 mei 2024 gedeeld account, daarvoor marten's avatar Per 29 mei 2024 gedeeld account, daarvoor marten
Browse files

Write out pretty-printed JSON

parent 8b51d6a0
No related branches found
No related tags found
No related merge requests found
Pipeline #97329 passed
......@@ -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),
),
},
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment