Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

Hashtable as object literal serialization toJSON

$
0
0
No matter how hard i try i just cant get my hashtable serialized with JSONUtilities... //Atributes @SerializeField private var Attributes = new Hashtable({ "strength" : 1, "agility" : 1, "mana" : 1, "health" : 1 }); After serializing object that contains it i got no errors, just there is not a trace of it in output. Im sure that it can be serialized, i guess there is just something wrong in my understanding of the subject. If someone can point me in right direction i would be grateful.

Viewing all articles
Browse latest Browse all 1875

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>