Fix JSON serialization in generic ObjectLookupView.
(TypeError: <itertools.imap object at 0x…> is not JSON serializable