Fixing controller JSON prompt logic
Adding test case for #78
Merge pull request #86 from krakenjs/controller-rejsonify

Fixes JSON prompt for controllers