#117: Using gson to serialize objects to json in a generic way.