Pass relevant JsonWriterOptions
from the KiotaJsonSerializationContext.Options
to the Utf8JsonWriter
when writing json to enable customization.
#281
Labels
area:serialization
Focused on functional modules of the product
enhancement
New feature or request
WIP
Related to discussion at microsoft/kiota#4898 (reply in thread)
Trying out the code below, the Encode settings seem to have no effect on the serialized payload.
This is because, the
JsonSerializationWriter
initializes aUtf8JsonWriter
instance without propagating relelvant options to theJsonWriterOptions
parameter in the constructor here.https://github.com/microsoft/kiota-serialization-json-dotnet/blob/046356f4e43767b12cfa7b6d223671d83e63309c/src/JsonSerializationWriter.cs#L51
The line should probably be updated to something as below and relevant tests added.
The text was updated successfully, but these errors were encountered: