Sha256: abb1e126541d3183d3526745c3fea34600d09cc5a6d933c4ec2d6ebfc545e387

Contents?: true

Size: 180 Bytes

Versions: 5

Compression:

Stored size: 180 Bytes

Contents

require 'oj'

module Vedeu
  module JSONParser
    extend self

    def parse(output)
      Oj.load(output, symbol_keys: true)
    rescue Oj::ParseError
      {}
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
vedeu-0.0.32 lib/vedeu/support/parsing/json_parser.rb
vedeu-0.0.31 lib/vedeu/support/parsing/json_parser.rb
vedeu-0.0.30 lib/vedeu/support/parsing/json_parser.rb
vedeu-0.0.29 lib/vedeu/support/parsing/json_parser.rb
vedeu-0.0.28 lib/vedeu/support/parsing/json_parser.rb