skip to Main Content

How to deserialize this JSON to a List?

I have an issue with deserializing the JSON file from the web to a List. My code is down below, but it does not execute and shows Newtonsoft.Json.JsonSerializationException. static void Main(string[] args) { List<Root> coinDatas = new List<Root>(); ; callApi(coinDatas);…

VIEW QUESTION

PHP 8.1 DOMDocument serialization – PHP Versions

I'm trying to make the following class compatible with native PHP serialization, specifically when running on PHP 8.1. class SerializableDomDocument extends DOMDocument { private $xmlData; public function __sleep(): array { $this->xmlData = $this->saveXML(); return ['xmlData']; } public function __wakeup(): void…

VIEW QUESTION
Back To Top
Search