I tried to serialize POCO class that was automatically generated from Entity Data Model .edmx and when I used
JsonConvert.SerializeObject
Please also make sure to use await and async in you method. You can get this error if your object are not serialized properly.