Remove json.dumps() from example and tutorial code.

(Not necessary since 4c69fbec263b5eeea23d11ee93fb002d028e2b6f)

closes #1819