Json Manager (Construct 3 Plugins)

You're viewing a single comment in a conversation. View all the comments
  • 1 Comments

  • Order by
  • I will take a look at it. But looking at your example the first things that strikes me is getting a dictionary works by pointing at simple javascript object with properties, not an array. So in that case the query to use with the GetDictionaryFromJsonPath would be something like slot.friendlist[0]. I will look at this to make sure though

    Edit:

    Just tried it with your example and it works fine by loading a dictionary with the following:

    JsonManager.GetDictionaryFromJsonPath("world", "friendlist[0]", "No")

    You could also do something like:

    JsonManager.GetDictionaryFromJsonPath("world", "friendlist[" & str(JsonManager.GetJsonArrayLength("world", "friendlist", "No")-1) &"]", "No")