objc: generate initWithJsonObject constructor