Support json for objects

Suggested by @Natim