Skip to content
Snippets Groups Projects
Commit eee3a55d 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
1 merge request!23Stop generating last_update, and generate pretty-printed JSONs
Pipeline #97330 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,7 +46,7 @@ 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,
......
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