JSON only provides two types of data structures: objects and arrays. An object is a collection of name-value pairs, whereas an array is a collection of values. String, integer, object, array, true, false, and null are the seven value types defined by JSON.