JSON is used as an alternative to Extensible Markup Language (XML). JSON was originally based on the JavaScript ... For example, if a hacker inserts non-JSON code into a string, such as a Trojan horse ...