You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JsonConfig uses a dot-notation syntax to traverse the JSON hierarchy. This allows you to read and modify deeply nested values without retrieving intermediate objects.
// Get the name of the first userStringfirstUser = config.getString("users[0].name"); // "Alice"// Helper method to get the ID of the second userintsecondId = config.getInt("users[1].id"); // 2
Relative Paths
When working with a JsonSection (a subsection of the config), paths are relative to that section.