Module: JsonHelper

Defined in:
app/helpers/json_helper.rb

Instance Method Summary collapse

Instance Method Details

#json_generateObject

These two JSON helpers are short-form wrappers for the Gitlab::Json class, which should be used in place of .to_json calls or calls to the JSON class.



7
8
9
# File 'app/helpers/json_helper.rb', line 7

def json_generate(...)
  Gitlab::Json.generate(...)
end

#json_parseObject



11
12
13
# File 'app/helpers/json_helper.rb', line 11

def json_parse(...)
  Gitlab::Json.parse(...)
end