I am trying to access the Water Discharge value in a USGS.gov JSON output.
I want to pull to the number value from:
"values":[{"value":[{"value":"2510"
and place it into a div or span to be styled with CSS.
(the value is live and will continue to drop from my post as 2510)
I am totally new to JSON and The USGS file is so convoluted I can't make heads or tails of it.I was hoping to keep it SUPER simple like this FLICKER API example I found at API.JQUERY.COM
I imagine it will start someting like
<span id="usgs_span"></span>
<script>
var usgs = "USGS JSON URL;
$.getJSON( usgs, {
})
.done(function( data ) {
$.values.value( "<span>" ).appendTo( "#usgs_span" );
});
})();
</script>
Any help would be greatly appreciated!