How to convert JsonNode to ObjectNode

前端 未结 4 1755
误落风尘
误落风尘 2021-02-05 03:51

I have a com.fasterxml JsonNode object with some data. I need to do some manipulation on its data. I googled for answer but didn\'t got it properly. Can you please

4条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-05 04:33

    I had this error too although in my case it was a stupid mistake. I accidentally imported org.codehaus.jackson.node.ObjectNode instead of com.fasterxml.jackson.databind.node.ObjectNode. Using the jackson ObjectNode fixed the issuse.

提交回复
热议问题