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?
-
Maybe the data is in JSON format (there is no 'javascript' data format)Jochen Bedersdorfer– Jochen Bedersdorfer2015-10-05 03:07:37 +00:00Commented Oct 5, 2015 at 3: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– Infinitylsx2015-10-05 03:47:40 +00:00Commented Oct 5, 2015 at 3:47
-
how to parse json in javaLinkBerest - SO sold our work– LinkBerest - SO sold our work2015-10-05 04:01:36 +00:00Commented Oct 5, 2015 at 4:01
Add a comment
|
1 Answer
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.