About 19,500,000 results
Open links in new tab
  1. What is the difference between Serializer and ModelSerializer

    Apr 15, 2020 · What is the difference between django rest framework's Serializer vs ModelSerializer? When do you one or the other? Can I use ModelSerializer for Auth? Thanks …

  2. How to write a custom Kotlin serializer with a dependency?

    Jan 11, 2024 · Define your serializer in a class with a zero-argument constructor that receives your dependency (here ThingRepository) statically; or Use contextual serialization, the feature …

  3. How do I use a custom Serializer with Jackson? - Stack Overflow

    Aug 23, 2011 · how / where did you get Jackson to use your custom Serializer for the Item? I'm having an issue where my controller method returns a standard serialized object TypeA, but …

  4. Serializer for class '...' is not found. Mark the class as ...

    Apr 24, 2022 · Serializer for class '...' is not found. Mark the class as @Serializable or provide the serializer explicitly Asked 3 years, 8 months ago Modified 4 months ago Viewed 74k times

  5. serialization - Django rest framework, use different serializers in …

    For the case in question, which is about using a different serializer for list and retrieve actions, you have the problem that both uses GET method. This is why django rest framework ViewSets …

  6. python - How to make a class JSON serializable - Stack Overflow

    Sep 22, 2010 · Here is a simple solution for a simple feature: .toJSON() Method Instead of a JSON serializable class, implement a serializer method:

  7. c# - Serialize an object to XML - Stack Overflow

    Nov 8, 2010 · I have a C# class that I have inherited. I have successfully "built" the object. But I need to serialize the object to XML. Is there an easy way to do it? It looks like the class has …

  8. Fastest way to serialize and deserialize .NET objects

    Nov 10, 2010 · 6 The binary serializer included with .net should be faster that the XmlSerializer. Or another serializer for protobuf, json, ... But for some of them you need to add Attributes, or …

  9. c# - XML serialization of interface property - Stack Overflow

    10 You can use ExtendedXmlSerializer. This serializer support serialization of interface property without any tricks.

  10. c# - NewtonSoft.Json Serialize and Deserialize class with property …

    Aug 1, 2012 · I am trying to move some code to consume ASP.NET MVC Web API generated Json data instead of SOAP Xml. I have run into a problem with serializing and deserializing …