Sorry for the length
I want to get color id and HexString from JSON Text
My JSON Text:
[{
“colorId”: 0,
“hexString”: “#000000”,
“rgb”: {
“r”: 0,
“g”: 0,
“b”: 0
},
“hsl”: {
“h”: 0,
“s”: 0,
“l”: 0
},
“name”: “Black”
}, {
“colorId”: 1,
“hexString”: “#800000”,
“rgb”: {
“r”: 128,
“g”: 0,
“b”: 0
},
“hsl”: {
“h”: 0,
“s”: 100,
“l”: 25
},
“name”: “Maroon”
}, {
“colorId”: 2,
“hexString”: “#008000”,
“rgb”: {
“r”: 0,
“g”: 128,
“b”: 0
},
“hsl”: {
“h”: 120,
“s”: 100,
“l”: 25
},
“name”: “Green”
}, {
“colorId”: 3,
“hexString”: “#808000”,
“rgb”: {
“r”: 128,
“g”: 128,
“b”: 0
},
“hsl”: {
“h”: 60,
“s”: 100,
“l”: 25
},
“name”: “Olive”
}, {
“colorId”: 4,
“hexString”: “#000080”,
“rgb”: {
“r”: 0,
“g”: 0,
“b”: 128
},
“hsl”: {
“h”: 240,
“s”: 100,
“l”: 25
},
“name”: “Navy”
}, {
“colorId”: 5,
“hexString”: “#800080”,
“rgb”: {
“r”: 128,
“g”: 0,
“b”: 128
},
“hsl”: {
“h”: 300,
“s”: 100,
“l”: 25
},
“name”: “Purple”
}, {
“colorId”: 6,
“hexString”: “#008080”,
“rgb”: {
“r”: 0,
“g”: 128,
“b”: 128
},
“hsl”: {
“h”: 180,
“s”: 100,
“l”: 25
},
“name”: “Teal”
}, {
“colorId”: 7,
“hexString”: “#c0c0c0”,
“rgb”: {
“r”: 192,
“g”: 192,
“b”: 192
},
“hsl”: {
“h”: 0,
“s”: 0,
“l”: 75
},
“name”: “Silver”
}, {
“colorId”: 8,
“hexString”: “#808080”,
“rgb”: {
“r”: 128,
“g”: 128,
“b”: 128
},
“hsl”: {
“h”: 0,
“s”: 0,
“l”: 50
},
“name”: “Grey”
}, {
“colorId”: 9,
“hexString”: “#ff0000”,
“rgb”: {
“r”: 255,
“g”: 0,
“b”: 0
},
“hsl”: {
“h”: 0,
“s”: 100,
“l”: 50
},
“name”: “Red”
}