import java.util.stream.Collectors;
import java.util.stream.IntStream;

class IdWireFixture {
    public static void main(String[] args) {
        boolean text = switch (args[0]) {
            case "text" -> true;
            case "numeric" -> false;
            default -> throw new IllegalArgumentException("Expected text or numeric");
        };
        long[] ids = {9_007_199_254_740_992L, 9_007_199_254_740_993L, 42L, 42L};
        String[] names = {"Oak", "Pine", "Maple", "Birch"};
        int count = text ? names.length : 2;
        // Only fixed, synthetic values. This is not a general-purpose JSON serializer.
        System.out.println(IntStream.range(0, count).mapToObj(i -> {
            String decimal = i == 2 ? "00042" : Long.toString(ids[i]);
            String token = text ? "\"" + decimal + "\"" : decimal;
            return "{\"id\":" + token + ",\"name\":\"" + names[i] + "\"}";
        }).collect(Collectors.joining(",", "[", "]")));
    }
}
