diff --git a/src/sunstone/models/OpenNebulaJSON/JSONUtils.rb b/src/sunstone/models/OpenNebulaJSON/JSONUtils.rb index 1eccfc9e5d..3940d88cc6 100644 --- a/src/sunstone/models/OpenNebulaJSON/JSONUtils.rb +++ b/src/sunstone/models/OpenNebulaJSON/JSONUtils.rb @@ -47,8 +47,7 @@ module OpenNebulaJSON def parse_json_sym(json_str, root_element) begin - parser = JSON.parser.new(json_str, {:symbolize_names => true}) - hash = parser.parse + hash = JSON.parse(json_str, {:symbolize_names => true}) if hash.has_key?(root_element) return hash[root_element]