Fixed payload data.

payload should be wrapped with JSON.stringify, so that the posted data would be the correct json format.