mgholam / fastJSON

Smallest, fastest polymorphic JSON serializer
https://www.codeproject.com/Articles/159450/fastJSON-Smallest-Fastest-Polymorphic-JSON-Seriali
MIT License
478 stars 148 forks source link

Do you not support custom value type collections? #119

Open BlacMountain opened 3 years ago

BlacMountain commented 3 years ago

Do you not support custom value type collections? I found that your circular reference judgment did not judge the custom value type, which caused an error during deserialization.

BlacMountain commented 3 years ago

{"$types":{"JsonFastDemo+C, Assembly-CSharp, Version=1.0.0.1, Culture=neutral, PublicKeyToken=null":"1","BlackJack.LogicGraph.GraphElementId, Assembly-CSharp, Version=1.0.0.1, Culture=neutral, PublicKeyToken=null":"2","BlackJack.LogicGraph.LogicGraphId, Assembly-CSharp, Version=1.0.0.1, Culture=neutral, PublicKeyToken=null":"3"},"$type":"1","bs":[{"$type":"2","m_graphId":{"$type":"3","m_ip":1,"m_ticks":1,"m_seq":1},"m_elementSeq":1},{"$i":2},{"$type":"2","m_graphId":{"$type":"3","m_ip":2,"m_ticks":2,"m_seq":2},"m_elementSeq":2},{"$i":4}]}

mgholam commented 3 years ago

Please explain more, also show your code.