Description:
Currently, the tool uses the @jsondata:Name annotation to overwrite the record name with the given JSON property name when using the parseAsType method. This issue aims to implement the same annotation usage in the toJson function to overwrite the given property name with the corresponding JSON property.
Description: Currently, the tool uses the
@jsondata:Name
annotation to overwrite the record name with the given JSON property name when using the parseAsType method. This issue aims to implement the same annotation usage in the toJson function to overwrite the given property name with the corresponding JSON property.This feature improvement is required this proposal : https://github.com/ballerina-platform/ballerina-library/issues/6747