summaryrefslogtreecommitdiff
path: root/lib/chef/api_client.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/api_client.rb')
-rw-r--r--lib/chef/api_client.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/api_client.rb b/lib/chef/api_client.rb
index e8585106e4..7b7fd99ff7 100644
--- a/lib/chef/api_client.rb
+++ b/lib/chef/api_client.rb
@@ -121,7 +121,7 @@ class Chef
#
# @return [String] the JSON string.
def to_json(*a)
- ::Chef::JSONCompat.to_json(to_hash, *a)
+ to_hash.to_json(*a)
end
def self.json_create(o)