Quick question.
I have a json file:
{
"RentalCore": {
"@PickUpDate": "2014-09-22T10:00:00Z",
"@ReturnDateT": "2014-10-06T10:00:00Z",
"Location": {
"@Name": "NY - Airport"
},
"ReturnLocation": {
"@Name": "NY - Airport"
}
}
}
Normally if you have an object you'd access its objects with . notation.
But I can't access @PickUpDate etc. Elements that contain '@'.
Could someone shed me some light on this?
get error : Uncaught SyntaxError: Invalid or unexpected token
if I try and use dot notation to access @PickUpDate