Introducing another way to pull data from Learning Stream
Learning Stream now offers another way—JSON— to share data with other systems. Your first question may be What is JSON? followed closely by Why care?
First, JSON stands for JavaScript Object Notation. Some people pronounce it Jason, as in Jason Bourne. Others pronounce it Jay-Sawn, the way a snobby Jason might ask you to pronounce it.
Either way you choose, JSON provides an alternative to XML when another system grabs data, such as registration details, from Learning Stream. JSON is easier for humans (vs computers) to read and write. XML requires more characters, and thus, more data, to be sent compared to the same data in JSON format.
Here’s what a sample JSON script looks like:
{
"key": "value",
"firstName": "Jason",
"lastName": "Bourne",
"city": "Nixa",
"state": "Missouri ",
"department": "top secret"
}
The same script using XML:
<?xml version="1.0" encoding="UTF-8" ?>
<root>
<key>value</key>
<firstName>Jason</firstName>
<lastName>Bourne</lastName>
<city>Nixa</city>
<state>Missouri </state>
<department>top secret</department>
</root>
When you want to share data with your Human Resources Management platform, for example, you may prefer the relative simplicity of JSON. If not, XML is still available, too. Here’s the documentation on JSON and all API options.