Intro to Node.js and APIs

APIs

Application Program Interfaces are a set of rules dictating how applications should interact. When discussing APIs in the contet of the web, we are usually referring to the process we use to post information to a website or database or pull information from a website or database.

JSON

JavaScript Object Notation is a data format used extensively on the web. It was developed for easy parsing within JavaScipt.

  • JSON is written in name|value pairs "name":"Jake"
  • Array:

  • Objects can have several sub-object:

  • An object with objects and an array:

Example JSON