fix linting
convert view to accept json