Stream objects to JSON and JSON into objects.