Following exception occurred when try to parse JSON response. Which contain a key with name job-name
error PayloadBindingClientError ("Payload binding failed: {ballerina/lang.value}ConversionError",error("{ballerina/lang.value}ConversionError"))
time = 2024-01-16T11:06:59.700+05:30 level = ERROR module = "" message = "Error while getting pods: " error = "Payload binding failed: {ballerina/lang.value}ConversionError"
Used the following type to parse the response
type Student record {
string user;
string job\-name?;
};
But if you ignore the string job\-name?; from the type and try to member access it is working fine. Any help?