- Home /
 
 
               Question by 
               Abubaker94 · Mar 05, 2017 at 03:27 PM · 
                javascriptserializationjsonhashtable  
              
 
              Hashtable as object literal serialization toJSON
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.
               Comment
              
 
               
              Your answer
 
             Follow this Question
Related Questions
JSON-Serializer (Renewed open) 0 Answers
How can I save and load an entire hashtable using playerprefs, or on all systems.? 1 Answer
JS objects in Unityscript || BCE0048: Type 'Object' does not support slicing. 0 Answers
Best Way to Store Large Number of GameObjects? 1 Answer
UnityScript How To Deserialize? 1 Answer