2021年1月25日星期一

java json parse Array in Array

Response Json Example

{   "Vector":[    [       0.4397082030773163,       -0.012103353627026081,       -0.2161077857017517,       -0.026392735540866852,       0.05935292690992355,       -0.5760968327522278,       0.04202766716480255,       0.2419523149728775,       0.23753486573696136,       0.1776883900165558,       -0.14778365194797516,       0.39537352323532104,       0.2885059416294098,       -0.21026603877544403,       0.01078229583799839,       -0.1319320797920227,       0.057625867426395416,       0.30589646100997925,       0.230633944272995,       0.26252174377441406,       0.044215716421604156,       -0.010213274508714676,       -0.11352837085723877,       0.0683090016245842,       0.09289062768220901,       0.19084183871746063,       0.3013514578342438,       -0.32687127590179443,       0.11771233379840851,       -0.011541221290826797,       -0.20182405412197113,       -0.18671868741512299    ]]}  

How java json parse Array in Array mapping?

I want to put the format above json as the format below, but the Vector is null.

Please help me.

class Exaple

public class ResponseVector {  String result_code;  String result_msg;  List<List<String[]>> Vector = new ArrayList<>();  String image; }  
https://stackoverflow.com/questions/65894751/java-json-parse-array-in-array January 26, 2021 at 09:32AM

没有评论:

发表评论