add json rendering feature
Migrate rendering to (faster) string builder implementation. Allow any type of object to be serialized.