Convenient way of dealing with JSON documents in web apps