parse a JSON file to get an array of values using JavaScript
Budget: $10 – $30 USD
I have an attached JSON file that I need a JavaScript Function where I can pass an id and get back an JSON element such as:
Pass in 45 and get:
{
"type": "Feature",
"id": "45",
"properties": {
"name": "South Carolina",
"density": 155.4
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[-82.764143, 35.066903],
[-82.550543, 35.160011],
[-82.276696, 35.198349],
[-81.044384, 35.149057],
[-81.038907, 35.044995],
And then filtered again to get back the coordinates. I need both steps.
Pass in 45 and get:
{
"type": "Feature",
"id": "45",
"properties": {
"name": "South Carolina",
"density": 155.4
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[-82.764143, 35.066903],
[-82.550543, 35.160011],
[-82.276696, 35.198349],
[-81.044384, 35.149057],
[-81.038907, 35.044995],
And then filtered again to get back the coordinates. I need both steps.