I was looking to add data to my program based off of the steam market api that I have found here but I am unsure how to use this data as I believe it is in Javascript. Is it possible to do so or is this not do-able?
Asked
Active
Viewed 232 times
0
-
Maybe the data is in JSON format (there is no 'javascript' data format) – Jochen Bedersdorfer Oct 05 '15 at 03:07
-
@Jochen_Bedersdorfer yeh I had a feeling I would just sound dumb. I have no idea what else to call it. My question is CAN I use that in java or is that not possible? – Infinitylsx Oct 05 '15 at 03:47
-
[how to parse json in java](https://stackoverflow.com/questions/2591098/how-to-parse-json-in-java) – LinkBerest Oct 05 '15 at 04:01
1 Answers
0
In Automatical way,
When you get json data from steam api in js/web page, you could pass the data using ajax to java web application controller by RESTful API to comsume/handle that data in java program. You could search "java spring web application" for your starting point
http://docs.spring.io/docs/Spring-MVC-step-by-step/part1.html#step1.8
In manual way,
You could just copy the result json string into java normal program to transform into Map/List object by some parsing function or library(e.g. gson) for further computation.