Best way to use Jackson JsonNodeFactory

前端 未结 4 408
北恋
北恋 2021-01-30 22:34

I\'m using Jackson to build a custom JSON object. Is the correct way of going about this?

It seems to work well (and the output is correct) but I may be missing the way

4条回答
  •  孤城傲影
    2021-01-30 22:43

    ObjectNode factory = JsonNodeFactory.instance.objectNode();
    

    This works well. I think this is an easier way.

提交回复
热议问题