I would like to create json string based on datatable rows. Source below works well , but sometimes i dont have AddressDetails object and I want to not set this. How to add condition to this code ( if selectedRow.DeliveryAddressDetails=null not set DeliveryAddressDetails )I would like to create json string based on dat