json view, move _lookup_wrapper to the plugin class