diff --git a/ballerina/json_api.bal b/ballerina/json_api.bal index efc9555..a2447fc 100644 --- a/ballerina/json_api.bal +++ b/ballerina/json_api.bal @@ -61,7 +61,8 @@ public isolated function toJson(anydata v) # Represent the options that can be used to modify the behaviour of the projection. # -# + allowDataProjection - enable or disable projection +# + nilAsOptionalField - If true, nil values will be treated as optional fields in the projection. +# + absentAsNilableType - If true, absent fields will be treated as nilable types in the projection. public type Options record { boolean nilAsOptionalField = false; boolean absentAsNilableType = false;