Modified to return an array of objects.

Returns JSON as an array of objects with ‘color’ and ‘hexCode’ as the
keys.