Skip to content

Instantly share code, notes, and snippets.

@awwaiid
Created January 6, 2016 16:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save awwaiid/a0bbb20c88b3c7f52c2d to your computer and use it in GitHub Desktop.
Save awwaiid/a0bbb20c88b3c7f52c2d to your computer and use it in GitHub Desktop.
> use Inline::Ruby::Sweet;
> "require 'json'":rb
«true»:rb
> my $json = 'JSON.parse(File.read("/home/awwaiid/lag.json"))':rb ; 5
5
> $json.count
«36071»:rb
> $json[0]
«{"order_id"=>1173786, "marketplace_id"=>1, "order_placed"=>"2015-10-13T20:28:59-04:00", "order_created"=>"2015-10-13T20:28:59-04:00", "lag"=>0.382000207901001}»:rb
> $json[0]["marketpalce_id"]
«»:rb
> $json[0]["marketplace_id"]
«1»:rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment