We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7349a8d commit 2fda57cCopy full SHA for 2fda57c
lib.gemspec
@@ -1,6 +1,6 @@
1
Gem::Specification.new do |g|
2
g.name = 'lib'
3
- g.version = '2.0.0'
+ g.version = '2.0.1'
4
g.date = Date.today.to_s
5
g.summary = "StdLib: Standard Library for Microservices Ruby Bindings"
6
g.description = "StdLib: Standard Library for Microservices Ruby Bindings"
lib/lib.rb
@@ -159,7 +159,7 @@ def exec!(*args)
159
if contentType === 'application/json' then
160
response = response.to_s
161
begin
162
- response = JSON.parse(response);
+ response = ('{['.include? response[0]) ? JSON.parse(response) : JSON.parse("[#{response}]")[0]
163
rescue
164
response = nil
165
end
0 commit comments