Fix JSON response location so that both is supported: arrays nested unde...

...r objects and named arrays. Issue: #27