korczis / json2csv

Easy to use tool for converting JSON to CSV
MIT License
34 stars 10 forks source link

errors trying to convert and use help #2

Open angelacode opened 9 years ago

angelacode commented 9 years ago
json2csv help convert  
=> NameError: undefined local variable or method `convert' for main:Object

json2csv convert errors.json
=> NameError: undefined local variable or method `errors' for main:Object
angelacode commented 9 years ago

Here is the full stack trace:

NoMethodError: undefined method convert' for main:Object from (irb):4 from /usr/local/opt/rbenv/versions/2.1.5/bin/irb:11:in

' irb(main):005:0> puts caller /usr/local/opt/rbenv/versions/2.1.5/lib/ruby/2.1.0/irb/workspace.rb:86:in eval' /usr/local/opt/rbenv/versions/2.1.5/lib/ruby/2.1.0/irb/workspace.rb:86:inevaluate' /usr/local/opt/rbenv/versions/2.1.5/lib/ruby/2.1.0/irb/context.rb:380:in evaluate' /usr/local/opt/rbenv/versions/2.1.5/lib/ruby/2.1.0/irb.rb:492:inblock (2 levels) in eval_input' /usr/local/opt/rbenv/versions/2.1.5/lib/ruby/2.1.0/irb.rb:624:in signal_status' /usr/local/opt/rbenv/versions/2.1.5/lib/ruby/2.1.0/irb.rb:489:inblock in eval_input' /usr/local/opt/rbenv/versions/2.1.5/lib/ruby/2.1.0/irb/ruby-lex.rb:247:in block (2 levels) in each_top_level_statement' /usr/local/opt/rbenv/versions/2.1.5/lib/ruby/2.1.0/irb/ruby-lex.rb:233:inloop' /usr/local/opt/rbenv/versions/2.1.5/lib/ruby/2.1.0/irb/ruby-lex.rb:233:in block in each_top_level_statement' /usr/local/opt/rbenv/versions/2.1.5/lib/ruby/2.1.0/irb/ruby-lex.rb:232:incatch' /usr/local/opt/rbenv/versions/2.1.5/lib/ruby/2.1.0/irb/ruby-lex.rb:232:in each_top_level_statement' /usr/local/opt/rbenv/versions/2.1.5/lib/ruby/2.1.0/irb.rb:488:ineval_input' /usr/local/opt/rbenv/versions/2.1.5/lib/ruby/2.1.0/irb.rb:397:in block in start' /usr/local/opt/rbenv/versions/2.1.5/lib/ruby/2.1.0/irb.rb:396:incatch' /usr/local/opt/rbenv/versions/2.1.5/lib/ruby/2.1.0/irb.rb:396:in start' /usr/local/opt/rbenv/versions/2.1.5/bin/irb:11:in
' => nil

korczis commented 9 years ago

Can you provide sample data file, please?