Updated jsonview to have better support for encoding objects