Implemented init with nested json for Object