java.lang.IllegalStateException:不是JSON对象:null如何解决此问题

时间:2019-07-17 09:22:13

标签: java json

我得到的java.lang.IllegalStateException: Not a JSON Object: null具有以下JSON结构,但我看不出问题所在。

您能告诉我以下JSON响应出了什么问题吗?

{
    "status":"OK",
    "error":[],
    "header": { 
        "headerAttributes": {
            "tenant": {
                "WM_BU_ID":"0",
                "WM_MART_ID":"0",
                "WM_VERTICAL_ID":"0",
                "WM_CHANNEL_ID":"0",
                "WM_LOCALE_ID":"en_US"
            },
        "server": {
            "sha":"a37a113a9bb1a6efd02cd011820f633bac6d313c",
            "ver":"118.0.1",
            "name":"app-276490012-15-280157865",
            "dc":"prod-dfw6",
            "env":"prod-a"
        },
        "context": {
            "access":true,
            "device":"UNSPECIFIED",
            "browser":"BROWSER",
            "topTxId":"86212cb2-10b-16bf42eb257000"
        },
        "timing": {
            "total": {
                "elapsed":27,
                "threads":5,
                "futures":51,
                "delay":1,
                "orchestrate":2
                }
            }
        }
    },
    "payload": { 
        "overallRatingRange":5.0,
        "totalReviewCount":0,
        "recommendedPercentage":0,
        "ratingValueOneCount":0,
        "ratingValueTwoCount":0,
        "ratingValueThreeCount":0,
        "ratingValueFourCount":0,
        "ratingValueFiveCount":0,
        "percentageOneCount":0,
        "percentageTwoCount":0,
        "percentageThreeCount":0,
        "percentageFourCount":0,
        "percentageFiveCount":0,
        "activePage":1,
        "activeSort":"submission-desc",
        "pagination": { 
            "total":0,
            "pages":[],
            "currentSpan":"1-0"
        },
        "customerReviews":[]
    }
}

0 个答案:

没有答案