Use json format for object type definition instead xml