Sha256: 2a07d4b7e0ef634ff2cb144a133f12ba00ca6e098d5dc01f636a385aee9a9f44

Contents?: true

Size: 197 Bytes

Versions: 43

Compression:

Stored size: 197 Bytes

Contents

require 'json'

module JSON
  def self.pretty_parse(string)
    parse(string)
  rescue => e
    raise JSON::ParserError, "Invalid JSON #{string}:\n\t#{e.message.force_encoding('utf-8')}"
  end
end

Version data entries

43 entries across 43 versions & 2 rubygems

Version Path
mumukit-core-0.1.3 lib/mumukit/core/json.rb
mumukit-core-0.1.2 lib/mumukit/core/json.rb
mumukit-core-0.1.1 lib/mumukit/core/json.rb