My AJAX call is sending the following data:
[{"type": "paragraph","subtype": "p","label": "Paragraph"}]
However when I print the data received on the console at the back end I get this:
{ '[{"type": "paragraph","subtype": "p","label": "Paragraph"}]': '' }
Please let me know if there is way to prevent this from happening as the data sent via AJAX is to be inserted into my MongoDB
.
Thanks to all in advance!