Nested object save

Simple object is saving without any issues for me. How to save the nested object into backendless without creating child object. My object structure is
{
custName:string,
custAge:number,
Unit:{
unitId:number,
unitname:string
},
Books:[{
Bookname:string
}]
}

You need to save each object individually, then “link” them using the setRelation or addRelation API calls.