Iam implementing datepicker using Oracle JET.The JET cookbook provides me sample Datapicker that has JSON file as below.
"Holidays": {
"*": {
"1": {
"14": {
"className": "holiday"
},
"26": {
"className": "holiday"
}
}
}
And Json file I get from my rest services is as below
[
{
"YEAR":"2017",
"MONTH":"1",
"DAY":[
{
"N_DAYS":"25",
"className":"holiday"
},
{
"N_DAYS":"25",
"className":"holiday"
}
]
},
];
How I can convert JSON file I get from the rest services like above one provided in JET cookbook