projects
/
arvados.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
10805: Fix crash during shutdown when running with llfuse 1.x.
[arvados.git]
/
services
/
api
/
lib
/
safe_json.rb
1
# Copyright (C) The Arvados Authors. All rights reserved.
2
#
3
# SPDX-License-Identifier: AGPL-3.0
4
5
class SafeJSON
6
def self.dump(o)
7
return Oj.dump(o, mode: :compat)
8
end
9
def self.load(s)
10
Oj.strict_load(s, symbol_keys: false)
11
end
12
end