This sample serializes a dictionary to JSON.
Sample