HF RL Explorer

Task: Casting Interfaces for Deserialization in JSON.NET

Task: Casting Interfaces for Deserialization in JSON.NET: a task in Terminal-Lego-15k (Harbor dataset). When deserializing JSON using Newtonsoft.Json (JSON.NET), the library cannot directly instantiate interface-typed properties. For example, if a class has a property of type IThingy …

The task

When deserializing JSON using Newtonsoft.Json (JSON.NET), the library cannot directly instantiate interface-typed properties. For example, if a class has a property of type `IThingy`, deserialization will fail with:

Part of PrimeIntellect/Terminal-Lego-15k.