does key support relative path ?

Discussion and help for Easy Save 3
Post Reply
kennir
Posts: 2
Joined: Thu Jun 27, 2019 12:43 pm

does key support relative path ?

Post by kennir »

For some reason, I can't serialize entire data of class by ES3Type, but I'd like to serialize to a nested key like ES3Type.

"my_data": {
"1": {
"id": 1,
"name": "a"
},
"2": {
"id": 2,
"name": "b"
}
}

does ES3.Save() support relative key like below?
ES3.Save<MyData>("my_data/1/id", data[0].id);
User avatar
Joel
Moodkie Staff
Posts: 4846
Joined: Wed Nov 07, 2012 10:32 pm

Re: does key support relative path ?

Post by Joel »

Hi there,

Please could you explain more about the issue you are having?

Also if you want a nested structure as you've described, you could simply create nested classes which represent this structure, or you could put them in a Dictionary.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
kennir
Posts: 2
Joined: Thu Jun 27, 2019 12:43 pm

Re: does key support relative path ?

Post by kennir »

Joel wrote:Hi there,

Please could you explain more about the issue you are having?

Also if you want a nested structure as you've described, you could simply create nested classes which represent this structure, or you could put them in a Dictionary.

All the best,
Joel

Thanks for reply

I will try to put the data into the dictionary
Post Reply