181 182 183 184 185 186 187 188
# File 'lib/core_extensions.rb', line 181 def self.validate(string) begin JSON.parse(string) true rescue JSON::ParserError => e false end end