Sha256: 52dd97be128b85c099450f059b2b88f45a765efb01849f4ce5f77b89cb870e15

Contents?: true

Size: 120 Bytes

Versions: 8

Compression:

Stored size: 120 Bytes

Contents

require 'yajl'

module JSONHelper
  def parse_json(file_or_string)
    Yajl::Parser.new.parse(file_or_string)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
wp-api-0.1.6 spec/helpers/json_helper.rb
wp-api-0.1.5 spec/helpers/json_helper.rb
wp-api-0.1.4 spec/helpers/json_helper.rb
wp-api-0.1.3 spec/helpers/json_helper.rb
wp-api-0.1.2 spec/helpers/json_helper.rb
wp-api-0.1.1 spec/helpers/json_helper.rb
wp-api-0.0.4 spec/helpers/json_helper.rb
wp-api-0.0.3 spec/helpers/json_helper.rb