The /index path code

Similar functionality, but with JSON rep of the object instead of View