Error Domain=CBLHTTP Code=400 "400 Invalid JSON"

It’s always a good idea to look at the API docs. The ones for iOS are here.