Please can the DataTypeToJson be improved in 19.2 and or NextGen so that the JSON only contains the struct elements that have been set and not all of them

Yes the JSON can be processed afterwards to remove blanks etc but you might want to send a blank to clear the contents of a field at the other end or you don't want a boolean set to false etc etc

At the moment DataTypeToJson is almost a solution instead of having to manually code the contents of a JSON object to get the exact JSON you expect but it's not quite there

The JSONToDataType could also do with ignoring nulls