JSON and Generics in Java - Type safety warning

后端 未结 7 1432
逝去的感伤
逝去的感伤 2020-12-10 05:05

I have some data stored in Java elements and I need to return it in a given format - JSONObject. While my implementation works fine, I\'m still getting a warning message fro

7条回答
  •  醉酒成梦
    2020-12-10 05:27

    try to change the put line to other

     JsonPath.parse(jsonObj).set(fieldPath, Value);
    

提交回复
热议问题