日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學無先后,達者為師

網站首頁 編程語言 正文

objectMapper(字符串轉對象)

作者:小徐敲java 更新時間: 2024-04-03 編程語言

1:demo

import com.fasterxml.jackson.databind.ObjectMapper;

public class Main {
    public static void main(String[] args) throws Exception {
        String aa = "[[\"53\",\"1732308576065851394\"],[\"53\",\"29\"],[\"53\",\"70\"]]";
        
        ObjectMapper objectMapper = new ObjectMapper();
        String[][] array = objectMapper.readValue(aa, String[][].class);
        
        System.out.println(Arrays.deepToString(array));
    }
}

2:pom.xml

<dependency>
    <groupId>com.fasterxml.jackson.core</groupId>
    <artifactId>jackson-databind</artifactId>
    <version>2.13.0</version>
</dependency>

原文鏈接:https://blog.csdn.net/qq_19891197/article/details/136234033

  • 上一篇:沒有了
  • 下一篇:沒有了
欄目分類
最近更新