public static Map<String, Vertex5[]> importVertsFromJson(Reader reader) {

        try {
            Map<String, Vertex5[]> vertMap = new HashMap<>();
            JsonReader jsonReader = new JsonReader(reader);

            jsonReader.beginObject();
            while (jsonReader.hasNext()) {

                String name = jsonReader.nextName();
                LinkedList<Vertex5> verts = new LinkedList<>();

                jsonReader.beginArray();
                while (jsonReader.hasNext()) {
                    Vertex5 vertex = new Vertex5();

                    jsonReader.beginObject();
                    while (jsonReader.hasNext()) {
                        String key = jsonReader.nextName();
                        switch (key) {
                            case "x" -> vertex.vec.x = jsonReader.nextDouble();
                            case "y" -> vertex.vec.y = jsonReader.nextDouble();
                            case "z" -> vertex.vec.z = jsonReader.nextDouble();
                            case "u" -> vertex.uv.u = jsonReader.nextDouble();
                            case "v" -> vertex.uv.v = jsonReader.nextDouble();
                            default -> throw new RuntimeException("Invalid key: " + key);
                        }
                    }
                    jsonReader.endObject();

                    verts.add(vertex);
                }
                jsonReader.endArray();

                vertMap.put(name, verts.toArray(new Vertex5[0]));
            }
            jsonReader.endObject();

            return vertMap;

        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
Imports verts from a json file. (See {@link #exportVertsToJson(String, Map)} for the format)
core/src/main/java/mrtjp/projectred/lib/ModelLib.java