I want to initialise my array value like JSON data ,When i try its not initialising as properly,Here my code
My JSON value
[{"ShiftCode":"1","ShiftName":"BREAKFAST"},
{"ShiftCode":"2","ShiftName":"LUNCH"},
{"ShiftCode":"2","ShiftName":"LUNCH"},
{"ShiftCode":"3","ShiftName":"DINNER"},
{"ShiftCode":"3","ShiftName":"DINNER"}]
I tried like the following
shiftArr={'[[[{"ShiftCode":"1","ShiftName":"BREAKFAST"},{"ShiftCode":"2","ShiftName":"LUNCH"},{"ShiftCode":"2","ShiftName":"LUNCH"},{"ShiftCode":"3","ShiftName":"DINNER"},{"ShiftCode":"3","ShiftName":"DINNER"}]]]'};
It not working,What change should i want to do further?