diff --git a/service/web_controller.rb b/service/web_controller.rb index b705b47..6758717 100644 --- a/service/web_controller.rb +++ b/service/web_controller.rb @@ -71,7 +71,7 @@ def as_json(*args) measure_dto = request.params # Uses the Rack::JSONBodyParser middleware # Prepare CQM Measure - madie_measure = JSON.parse(measure_dto["measure"]) + madie_measure = JSON.parse(measure_dto["measure"],max_nesting: 512) measure = CQM::Measure.new(madie_measure) unless measure_dto["measure"].nil? if measure.nil? return [400, "Measure is empty."]