class String
Public Instance Methods
is_json?()
click to toggle source
# File lib/initializers/is_json.rb, line 4 def is_json? begin !!JSON.parse(self) rescue false end end
# File lib/initializers/is_json.rb, line 4 def is_json? begin !!JSON.parse(self) rescue false end end