Serializes this object as json.
Default constructor setting the OS property to Environment.OSVersion.ToString();