You need to request the data with AJAX, then parse it into a JSON object. After that you can read data from JSON and copy it into an array if you wish so.
For example, to get the rarity of the second bike:
JSON.get("query.1.rarity")
See the official "JSON" example in Construct.