parsing colors from json spec