add colour class in JSON