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