Ensure view json is defined

Signed-off-by: Byron Ruth <b@devel.io>