value:toJson
has not mentioned on how to handle tagged data values
#1288
Labels
value:toJson
has not mentioned on how to handle tagged data values
#1288
Description:
Though
value:toJson
has mentioned about table and xml type anydata values, it does not mention how to handle tagged data values such as values of typelang.regexp:RegExp
.ballerina-spec/lang/lib/value.bal
Lines 117 to 132 in c88701b
The spec has defined https://ballerina.io/spec/lang/master/#ToString for tagged data types. Do we need to just call
value:toString
whenvalue:toJson
is called on tagged data values or what should be done here?Suggested Labels:
spec/undefined
Code sample that shows issue:
currently gives
Related Issues:
ballerina-platform/ballerina-lang#42070
The text was updated successfully, but these errors were encountered: