microsoft / kiota-java

Java libraries for Kiota-generated API clients.
https://aka.ms/kiota/docs
MIT License
22 stars 23 forks source link

Json serilializer leaves out object of JsonObject type in additionalData #1388

Open andrueastman opened 2 weeks ago

andrueastman commented 2 weeks ago

Related to https://github.com/microsoftgraph/msgraph-sdk-java/issues/2063

The json serializer does not handle JsonObject types resulting in illegalState exception as only the property is written.

We should probably add a case for the same at https://github.com/microsoft/kiota-java/blob/a853aaec76e0102e18e27c02c75ca8ef0a0021a1/components/serialization/json/src/main/java/com/microsoft/kiota/serialization/JsonSerializationWriter.java#L471