FError::SerializeToJsonForAnalytics

Write this error to json for analytics. The format is the same as