lib/under_os/http/response.rb in under-os-1.0.0 vs lib/under_os/http/response.rb in under-os-1.1.0

- old
+ new

@@ -12,9 +12,13 @@ def body @body ||= @data.to_s end + def json + JSON.parse(body) + end + def content_length headers["Content-Length"].to_i end def content_type