This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ///usr/bin/env jbang "$0" "$@" ; exit $? | |
| //JAVA 21+ | |
| /* | |
| * Copyright Kroxylicious Authors. | |
| * | |
| * Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0 | |
| */ | |
| /* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import sys, json, copy; | |
| data = json.load(sys.stdin) | |
| def permute(data): | |
| permutations = [None, "", "wubbalub-gibberish", 1, [], {}] | |
| if isinstance(data, list): | |
| if len(data) > 0: | |
| inner = [[x] for x in permute(data[0])] |