@Test
    public void testInt8VectorInHexForm() {
        Tensor.Builder builder = Tensor.Builder.of(TensorType.fromSpec("tensor<int8>(x[2],y[3])"));
        builder.cell().label("x", 0).label("y", 0).value(2.0);
        builder.cell().label("x", 0).label("y", 1).value(127.0);
        builder.cell().label("x", 0).label("y", 2).value(-1.0);
        builder.cell().label("x", 1).label("y", 0).value(-128.0);
        builder.cell().label("x", 1).label("y", 1).value(0.0);
        builder.cell().label("x", 1).label("y", 2).value(42.0);
        Tensor expected = builder.build();

        String denseJson = "{\"values\":\"027FFF80002A\"}";
        Tensor decoded = JsonFormat.decode(expected.type(), denseJson.getBytes(StandardCharsets.UTF_8));
        assertEquals(expected, decoded);

        denseJson = "\"027FFF80002A\"";
        decoded = JsonFormat.decode(expected.type(), denseJson.getBytes(StandardCharsets.UTF_8));
        assertEquals(expected, decoded);
    }
Tests parsing of various tensor values set at the root, i.e. no 'cells', 'blocks' or 'values'
vespajlib/src/test/java/com/yahoo/tensor/serialization/JsonFormatTestCase.java