You just need to pass the details themselves in the sixth parameter to the issue API, e.g. if you're using the command line interface:
issue [address] asset1 100 0.01 0 '{"foo1":"value"...}'
If you're doing this via a more direction connection to the JSON-RPC API, be sure to pass the custom fields as a JSON object rather than a string.