JSON-encode data payload for requests