Add JSON visitor template.
Add basic JSON visitor.
Added ivar JSON representation.