cucumber/cucumber — Issue #197: Confusing error message from json formatter
Author: flashquartermaster
Created: 2011-12-02 22:54:45+00:00
State: open

$ cucumber -t @step_matcher -f json_pretty
Feature file being parsed is [https://github.com/flashquartermaster/Cuke4AS3/blob/master/Cuke4AS3/test/features/cuke4as3/step-matcher.feature](https://github.com/flashquartermaster/Cuke4AS3/blob/master/Cuke4AS3/test/features/cuke4as3/step-matcher.feature)

```
only generation of JSON objects or arrays allowed (JSON::GeneratorError)
/Library/Ruby/Gems/1.8/gems/json-1.6.0/lib/json/common.rb:278:in 'generate'
/Library/Ruby/Gems/1.8/gems/json-1.6.0/lib/json/common.rb:278:in 'pretty_generate'
/Library/Ruby/Gems/1.8/gems/cucumber-1.0.5/bin/../lib/cucumber/formatter/json_pretty.rb:8:in 'after_features'
/Library/Ruby/Gems/1.8/gems/cucumber-1.0.5/bin/../lib/cucumber/ast/tree_walker.rb:173:in '__send__'
/Library/Ruby/Gems/1.8/gems/cucumber-1.0.5/bin/../lib/cucumber/ast/tree_walker.rb:173:in 'send_to_all'
/Library/Ruby/Gems/1.8/gems/cucumber-1.0.5/bin/../lib/cucumber/ast/tree_walker.rb:171:in 'each'
/Library/Ruby/Gems/1.8/gems/cucumber-1.0.5/bin/../lib/cucumber/ast/tree_walker.rb:171:in 'send_to_all'
/Library/Ruby/Gems/1.8/gems/cucumber-1.0.5/bin/../lib/cucumber/ast/tree_walker.rb:164:in 'broadcast'
/Library/Ruby/Gems/1.8/gems/cucumber-1.0.5/bin/../lib/cucumber/ast/tree_walker.rb:13:in 'visit_features'
/Library/Ruby/Gems/1.8/gems/cucumber-1.0.5/bin/../lib/cucumber/runtime.rb:45:in 'run!'
/Library/Ruby/Gems/1.8/gems/cucumber-1.0.5/bin/../lib/cucumber/cli/main.rb:43:in 'execute!'
/Library/Ruby/Gems/1.8/gems/cucumber-1.0.5/bin/../lib/cucumber/cli/main.rb:20:in 'execute'
/Library/Ruby/Gems/1.8/gems/cucumber-1.0.5/bin/cucumber:14
/usr/bin/cucumber:19:in 'load'
/usr/bin/cucumber:19
```