public static List<MetricsPacket.Builder> toMetricsPackets(String jsonString) {
        List<MetricsPacket.Builder> packets = new ArrayList<>();
        var mapper = objectMapper();
        try (JsonParser jp = mapper.createParser(jsonString)) {
            while (jp.nextToken() != null) {
                YamasJsonModel jsonModel = jp.readValueAs(YamasJsonModel.class);
                packets.add(toMetricsPacketBuilder(jsonModel));
            }
            return packets;
        } catch (IOException e) {
            log.log(WARNING, "Could not create metrics packet from string:\n" + jsonString, e);
            return List.of();
        }
    }
@Test
    public void empty_json_string_yields_empty_packet_list() {
        List<MetricsPacket.Builder> builders = toMetricsPackets("");
        assertTrue(builders.isEmpty());
    }