add view and json struct: