Add getOrCreateSet method to JsonObject to make it easier to treat nested arrays as sets.