Enable json output for preparing results, fixes #43 redmine