How to de/serialize types?
See original GitHub issueI trying to use this library, and I would like to know how to de/serialize types e.g. LocalDate
, LocalDateTime
.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
How to deserialize JSON to objects of the correct type, without ...
Json.NET has the ability to record the .Net object type of polymorphic types during serialization, by using the setting TypeNameHandling ...
Read more >How to serialize and deserialize JSON using C# - .NET
A common way to deserialize JSON is to first create a class with properties and fields that represent one or more of the...
Read more >Deserialize an Object - Json.NET
This sample deserializes JSON to an object. Sample. Types. Copy. public class Account { ...
Read more >C# - Deserialize JSON to a derived type - MAKOLYTE
The simplest way to deserialize JSON to a derived type is to put the type name in the JSON string. Then during deserialization,...
Read more >JSON Class | Apex Reference Guide - Salesforce Developers
deserialize (jsonString, apexType). Deserializes the specified JSON string into an Apex object of the specified type. Signature. public ...
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
I’d recommend using kotlinx.serialization. We have plans to provide some ready to use serializers in future.
Hi @qrezet, not sure what you mean, Ktor is not even integrated with the datetime library. It does have support for serialization but, as far as I know, does not provide any serializers of its own.
Also, the PR was merged, so the serializers for kotlinx-datetime are in the main branch now!