如何使用杰克逊解析Steam Complex json

问题描述 投票:0回答:1

您可以请求跟随响应的json,以获取以下网址:https://api.steampowered.com/ISteamEconomy/GetAssetClassInfo/v0001/?key=D76B38AB211641646C521E1A2E442EF3&appid=570&class_count=1&classid0=644964380&instanceid0=1626596948

我需要使用restTemplate来请求Steam api以获取此json并想转换为Java对象,如何定义此对象

jackson resttemplate
1个回答
0
投票
您可以使用在线工具将json转换为java pojo。如果无法生成Java对象。

看这个this

© www.soinside.com 2019 - 2024. All rights reserved.