【问题标题】:is there any way to convert a nested map to json object without adding any dependencies?is there any way to convert a nested map to json object without adding any dependencies?
【发布时间】:2022-12-27 21:49:43
【问题描述】:

I have

Map<String, Map<String, Map<String, Map<String, String>>>> map = new HashMap<>();

so inserted some values in it, then I need to convert this map to Json without any dependencies (ObjectMapper, Gson, ...), so is there any way to do it?

【问题讨论】:

标签: java json java-8 hashmap java-11


【解决方案1】:

without any dependencies so how to store your data with what type when java standard lib doesn't have json type?

【讨论】:

  • This should be a comment!
猜你喜欢
  • 2022-12-01
  • 2022-12-27
  • 2022-12-27
  • 2022-12-01
  • 2023-02-24
  • 2022-12-02
  • 2022-12-02
  • 2022-12-01
  • 2022-12-02
相关资源
最近更新 更多