I have an JSON object in javascript
"urls": {"url": "http://www.google.co.uk"}
I want to be able to get the actual URL google.co.uk, not the text 'url'.
I also have a variable called date.
I want to create a New object that holds the url value as the key and set the value to the date '20/10/2013' for example.
"newObject": {"http://www.google.co.uk": "20/10/2013"}
Im sure this is possible however I am not so good with json objects and i welcome any help.
urlsan object property, or the name of your Javascript variable? Same question fornewObject-- do you want one of the object properties to benewObject, or is that just what you want the name of the variable to be?