[Solved] Post request in swift with encodable [closed]
This JSON is wrong. You JSON must be valid. In order to make above JSON valid we need to set array with a key. Wrong { [{ “time”: 1, “score”: 20, “status”: true, “answer”: 456 }], challenge_date”: “2019-03-13” } Correct { “array”: [{ “time”: 1, “score”: 20, “status”: true, “answer”: 456 }], “challenge_date”: “2019-03-13” } … Read more