I am relatively new to JSON. I have recently added JQuery and JavaScript to an application to make it more interactive and quicker. I understand how JSON works for basic types like: Strings, Numbers etc where there is a MAP i.e. a key and a value. For example: http://www.w3schools.com/json/. Here there is an Employees list, where each employee has two keys i.e. first name and last name and two values i.e. first name value and last name value.
However, I do not understand how binary data fits into the equation. Say I was to add a new property to the Employee object called: Video, which is a type: application/octet-stream
like in the question: Binary Data in JSON String. Something better than Base64 and the value was:
TWFuIGlzIGRpc3Rpbmd1aXNoZWQsIG5vdCBvbmx5IGJ5IGhpcyByZWFzb24sIGJ1dCBieSB0aGlz
IHNpbmd1bGFyIHBhc3Npb24gZnJvbSBvdGhlciBhbmltYWxzLCB3aGljaCBpcyBhIGx1c3Qgb2Yg
dGhlIG1pbmQsIHRoYXQgYnkgYSBwZXJzZXZlcmFuY2Ugb2YgZGVsaWdodCBpbiB0aGUgY29udGlu
dWVkIGFuZCBpbmRlZmF0aWdhYmxlIGdlbmVyYXRpb24gb2Yga25vd2xlZGdlLCBleGNlZWRzIHRo
ZSBzaG9ydCB2ZWhlbWVuY2Ugb2YgYW55IGNhcm5hbCBwbGVhc3VyZS4=
How is this data represented as a MAP? I realise this is probably a simple question, however I do have a JSON book but it does not go into that much detail. I have not found an answer on the web either.