json.dumps needs a custom default function to handle the
case of serializing a datetime object with an embedded Utc
object. This CR adds a generic method to allow anyone
needed to perform such special processing to include it
all in one place.
Change-Id: I84a31e38bf97d83a62108d8cb8f0466ed7fc7d03
Closes-Bug: 1420442