Browse Source

[ruby/grape] Use OJ for JSON (#8566)

OJ is a lot faster than the default json gem.
OJ is also used by most other frameworks.
Grape supports the `multi_json` gem to switch to another JSON gem.
Petrik de Heus 1 year ago
parent
commit
8edadc3722
1 changed files with 2 additions and 1 deletions
  1. 2 1
      frameworks/Ruby/grape/Gemfile

+ 2 - 1
frameworks/Ruby/grape/Gemfile

@@ -7,4 +7,5 @@ gem 'activerecord', '7.0.3', :require => 'active_record'
 gem 'activerecord-import', '1.4.0'
 gem 'grape', '1.6.2'
 gem 'rack', '2.2.3.1'
-gem 'json', '2.6.2'
+gem 'multi_json', require: 'multi_json'
+gem 'oj', '~> 3.16'