lib/scraper/parser/imei_page.rb
#
# Parse JSON object in the script content
#
Parse JSON object in the script content
Parse JSON object in the script content
def parse_json
        matchers = JSON_PATTERN.match(script_content)
        return unless matchers
        matchers[:obj].scan(JSON_GROUP_PATTERN).each do |group|
          @data[json_key_alias(group.first)] = eval_json_value(group.last)
        end
      end
def parse_json matchers = JSON_PATTERN . match ( script_content ) return unless matchers matchers [ :obj ] . scan ( JSON_GROUP_PATTERN ) . each do | group | @data [ json_key_alias ( group . first ) ] = eval_json_value ( group . last ) end end
Parse JSON object in the script content
Parse JSON object in the script content