Add a property to a json string with jackson json

后端 未结 1 1296
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-31 19:34

I am storing a json string into a text field in mysql. After the insertion, i want to update my json string and add the mysql line id into it with jackson json.

I ha

相关标签:
1条回答
  • 2020-12-31 20:05

    Try casting your JsonNode to an com.fasterxml.jackson.databind.node.ObjectNode and then calling put set (or replace) on it.

    0 讨论(0)
提交回复
热议问题