Skip to content
Browse files

Use built-in JSON, not multi_json.

  • Loading branch information...
1 parent 1dc205a commit f7057dcf549c18ca4f68a7dcdb318265e2212744 @schuyler schuyler committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/statsd.rb
View
4 lib/statsd.rb
@@ -1,6 +1,6 @@
require 'socket'
require 'forwardable'
-require 'multi_json'
+require 'json'
# = Statsd: A Statsd client (https://github.com/etsy/statsd)
#
@@ -169,7 +169,7 @@ def read_metric name
send_to_socket name
result = read_from_socket
# for some reason, the reply looks like JSON, but isn't, quite
- MultiJson.load result.gsub("'", "\"")
+ JSON.parse result.gsub("'", "\"")
end
def delete_metric name, item

0 comments on commit f7057dc

Please sign in to comment.
Something went wrong with that request. Please try again.