boonproject / boon

Simple opinionated Java for the novice to expert level Java Programmer. Low Ceremony. High Productivity.
http://richardhightower.github.io/site/Boon/Welcome.html
Apache License 2.0
520 stars 102 forks source link

Can this library parse Json.Net C# json with PreserveReferences option #383

Open LucaGabi opened 5 years ago

LucaGabi commented 5 years ago

Hi,

I have a C# Json.Net output json string with this settings:

JsonConvert.DefaultSettings = () => new JsonSerializerSettings
            {
                Formatting = Newtonsoft.Json.Formatting.Indented,
                ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore,
                PreserveReferencesHandling = PreserveReferencesHandling.Objects
            };

Can this library deserialize the json string in java ? See also this SO question and please help.

https://stackoverflow.com/questions/54449023/how-can-json-be-deserialized-in-java-when-it-contains-ref-and-id-generated-by

Thanks.