Revert "Fix JSON serialization in generic ObjectLookupView."

This reverts commit 9208faf1e5d14097e7db291133537bf73176c141.