I have a JSON look like this:
[
{
"texto": "Eae",
"contato": "Luis",
"data": "2018-09-25T21:08:00"
},{
"texto": "Salve povo",
"contato": "Rogerio",
"data": "2018-09-25T21:15:00"
}
]
And an HTML component with a textarea
where the user would type the text and missing data such as contact and date are caught dynamically.
How do I add a "message" in JSON so that it looks something like this:
[
{
"texto": "Eae",
"contato": "Luis",
"data": "2018-09-25T21:08:00"
},{
"texto": "Salve povo",
"contato": "Rogerio",
"data": "2018-09-25T21:15:00"
},{
"texto": "De boas?",
"contato": "Victor",
"data": "2018-09-25T21:09:00"
}
]