summaryrefslogtreecommitdiff
path: root/lib/chef_zero/endpoints/user_organizations_endpoint.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef_zero/endpoints/user_organizations_endpoint.rb')
-rw-r--r--lib/chef_zero/endpoints/user_organizations_endpoint.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef_zero/endpoints/user_organizations_endpoint.rb b/lib/chef_zero/endpoints/user_organizations_endpoint.rb
index 98824d6..b6decb9 100644
--- a/lib/chef_zero/endpoints/user_organizations_endpoint.rb
+++ b/lib/chef_zero/endpoints/user_organizations_endpoint.rb
@@ -1,4 +1,4 @@
-require 'json'
+require 'ffi_yajl'
require 'chef_zero/rest_base'
module ChefZero
@@ -12,7 +12,7 @@ module ChefZero
end
result = result.map do |orgname|
org = get_data(request, [ 'organizations', orgname, 'org' ])
- org = JSON.parse(org, :create_additions => false)
+ org = FFI_Yajl::Parser.parse(org, :create_additions => false)
ChefData::DataNormalizer.normalize_organization(org, orgname)
end
json_response(200, result)