NotImplementedException when serializing SearchMovie object
See original GitHub issueHi there.
I am receiving a NotImplementedException when trying to (Json) serialize a SearchMovie object. I’ve noticed the problem comes from method WriteJson (SearchBaseConverter.cs) Is there any reason to leave it this way? Couldn’t you just override ReadJson and leave the WriteJson part to the base JsonConverter?
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
{
throw new NotImplementedException();
}
Thanks in advance.
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Serialize property that throws NotImplementedException
A possible workaround would be to create another object from EasyToSerialize and then serialize it. [Serializable] public class EasyToSerialize ...
Read more >SerializeObject NotImplementedException .Net Core #999
When trying to serialize an object a NotImplementedException occurs. ... An unhandled exception occurred while processing the request.
Read more >NotImplementedException Class (System)
Occurs when an exception is serialized to create an exception state object that contains serialized data about the exception. (Inherited from Exception) ...
Read more >Error getting value from 'DefaultValue' on 'NHibernate.Type ...
I am trying to send an entity that has been saved to the database using using NHibernate across a SignalR hub connection. When...
Read more >Why is having a NotImplementedException a good thing?
A mock can need to implement only a small part of an interface, but to compile, it should declare all of them. The...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Great 😃
Merry Christmas.
Sent from my iPhone
I kinda should’ve expected somebody to want to serialize stuff again. I’ll look into creating writers for the various converters.
As for just relaying them to base, I think it might not work - not always at least. The converters should be transitive, meaning that serializing A to B should allow you to deserialize B back to A.