sdb_service 0.3.4 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,7 +9,11 @@ module SdbService
9
9
  end
10
10
 
11
11
  def deserialize_payload(payload)
12
- payload.is_a?(String) ? payload : JSON.parse(payload)
12
+ begin
13
+ return JSON.parse(payload)
14
+ rescue JSON::ParserError
15
+ return payload
16
+ end
13
17
  end
14
18
 
15
19
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 4
9
- version: 0.3.4
8
+ - 5
9
+ version: 0.3.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Derek Perez