class Consul::Utils
Public Class Methods
valid_json?(json)
click to toggle source
Public verify this is valid json
# File lib/consul/util/utils.rb, line 7 def self.valid_json?(json) begin JSON.parse(json) return true rescue Exception => e return false end end