💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
Java Json解释 pom.xml: ``` <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>1.2.47</version> </dependency> ``` 主体使用: ``` import com.alibaba.fastjson.*; String json = "{\"price\":811,\"num\":18011}"; JSONObject jsonObject = JSONObject.parseObject(json); System.out.println("num: "+jsonObject.getString("num")); System.out.println("price: "+jsonObject.getString("price")); System.out.println("jsonObject: "+jsonObject); ```