Post and decode raw JSON

This prevents jQuery from encoding the array and sends it as a raw JSON string in the request body.
The entries are now saved correctly to the db.