summaryrefslogtreecommitdiff
path: root/chef/lib/chef/application/client.rb
diff options
context:
space:
mode:
Diffstat (limited to 'chef/lib/chef/application/client.rb')
-rw-r--r--chef/lib/chef/application/client.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/chef/lib/chef/application/client.rb b/chef/lib/chef/application/client.rb
index 4d8addd9af..b8df754ece 100644
--- a/chef/lib/chef/application/client.rb
+++ b/chef/lib/chef/application/client.rb
@@ -181,7 +181,7 @@ class Chef::Application::Client < Chef::Application
end
begin
- @chef_client_json = JSON.parse(json_io.read)
+ @chef_client_json = Chef::JSON.from_json(json_io.read)
json_io.close unless json_io.closed?
rescue JSON::ParserError => error
Chef::Application.fatal!("Could not parse the provided JSON file (#{Chef::Config[:json_attribs]})!: " + error.message, 2)