How do I load a JSON string stored as value in another Dict.

Get help using Construct 2

Post » Mon Sep 14, 2015 11:45 pm

Hi, i have the following Dictionary, that stores JSON strings for another Dictionary like this
{
"c2dictionary":true,
"data":
{
"asd":{"c2dictionary":true,"data":{"nombre":"Jhon Travolta","danio":200,"defensa":20}}
}
}

I load the JSON for the father Dictionary as always using AJAX, so far so good, but when i want to create a new Dictionary like this

NewDictionary -> Load From JSON String FatherDictionary.Get("asd")

I cant do it, how should i load it?

EDIT EDIT EDIT EDIT: Nevermind, i solved it, you have to save the JSON string like this

"asd":"{\"c2dictionary\":true,\"data\":{\"nombre\":\"Jjpm\",\"danio\":20,\"defensa\":20}}"
B
13
S
3
Posts: 101
Reputation: 1,238

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 27 guests