make all api use objective-c object and not json string