Unable to write a generic code which can deserialize these json (represents tensor data) to java array using libraries like gson, jackson etc
example json1 { "dim": [1,4], "type": "FP64", "data": [[5.1,3.5,1.4,0.2]] }
Java object- List<List<<Float>>
example json2 { "dim": [4], "type": "INT8", "data": [0, 1, 2, 3] }
Java object - List<Integer>
example json3 { "dim": [1], "type": "BYTES", "data": ["This is a String"] }
Java object- List<String>