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
Branches
Tags
1 merge request!23Stop generating last_update, and generate pretty-printed JSONs
Pipeline #97330 passed
...@@ -36,7 +36,7 @@ module Quby ...@@ -36,7 +36,7 @@ module Quby
roqua: Output.new( roqua: Output.new(
key: :roqua, key: :roqua,
filename: "roqua.json", filename: "roqua.json",
content: Outputs::RoquaSerializer.new(questionnaire).to_json, content: JSON.pretty_generate(Outputs::RoquaSerializer.new(questionnaire).as_json)
), ),
seeds: Output.new( seeds: Output.new(
key: :seeds, key: :seeds,
...@@ -46,7 +46,7 @@ module Quby ...@@ -46,7 +46,7 @@ module Quby
quby_frontend_v1: Output.new( quby_frontend_v1: Output.new(
key: :quby_frontend_v1, key: :quby_frontend_v1,
filename: "quby-frontend-v1.json", 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( quby_frontend_v2: Output.new(
key: :quby_frontend_v2, key: :quby_frontend_v2,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment