I am sending vehicle VIN numbers to the NHTSA API at https://vpic.nhtsa.dot.gov/api/
I have figured out how to add the variable VIN into the URL but am having a problem parsing the response. All I need is the Year, Make and Model for a VIN. The response comes as an array of objects, where each object is a set of key-value pairs like this:
{
"Count": 136,
"Message": "",
"SearchCriteria": "VIN:5YJSA1H25FFP75471",
"Results": [
{
"Value": "TESLA",
"ValueId": "441",
"Variable": "Make",
"VariableId": 26
},
I've currently set up JSON paths for $.Results[:].Value and $.Results[:].Variable, but they return lists of only the values or only the variables.
Here is the page I'm filling out. I want the user to be able to enter the VIN, and have the other fields populate with the correct data:
I've watched every youtube video I can find, but they all work with a different type of data. This is probably really easy for some of you, but I've been bashing my head against a wall!