Recursively serialize objects before sending them over HTTP.