question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to de/serialize types?

See original GitHub issue

I trying to use this library, and I would like to know how to de/serialize types e.g. LocalDate, LocalDateTime.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
ilya-gcommented, Aug 14, 2020

I’d recommend using kotlinx.serialization. We have plans to provide some ready to use serializers in future.

0reactions
dkhalanskyjbcommented, Apr 14, 2021

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found