previously only addressed the JSON encoding for reply callbacks. Now we're covered.