One method I use to create a JSON object is through JSON-GENERATOR
I prefer the date to be formatted like this: 2017-12-31
[
'{{repeat(5, 7)}}',
{
equityPriceList: [
{
date:'{{date(new Date(1970, 0, 1), new Date(),[DD-MM-YYYY])}}',
identifiant: "4AAM26636",
lastDayTrading: "50%",
marketCapitalization: "13,44",
objectType: "BUSINESS_GROUP",
priceClosing: "100",
twelveMHigh: "50",
twelveMLow: "30"
}
],
ordering: "1W"
}
]
However, I'm currently encountering an error that says:
"date": "<ReferenceError: DD is not defined>"
I have attempted using datef('YYYY-MM-DD');
and other variations as well.