gh-183
Checking $result type on JSON view