在解析json时,无法识别的令牌':期待('真',' false'或' null')

时间:2016-07-16 10:36:42

标签: json web-services spring-restcontroller objectmapper

  

当我点击网址时,我得到了json中的respose

[{"action":"rs","version":"5","productCatalogName":"tet","productId":"1252","price":"1.5","operator_Code":"15252"}]

我正在使用对象映射器从url读取响应并将其存储到对象

eventProductDetail = objectMapper.readValue(url,
                    new TypeReference<EventProductDetail>() {
                    }); 
  

我得到了例外:

Exception ing etProductDetails com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'http': was expecting ('true', 'false' or 'null')

0 个答案:

没有答案