Simple JSON Example

This page shows a very basic example of creating a JSON Object

JSON allows you to create an object without defining a class

The object is stored in a variable named "fluffie". The object has properties, one of which is the "introduction" property which just popped up in an alert when you loaded the page.

The object also has methods, one of which is the bark() method which is called when you click the button below.