• Articles
  • Api Documentation
Search Results for

    Show / Hide Table of Contents
    • AdditionalData
      • AdrParametersItemChoiceEnum
      • AnniversaryItemChoiceEnum
      • BdayItemChoiceEnum
      • ByRefType
      • CallerInfo
      • CommentSubType
      • CommentType
      • DeviceInfoType
      • DeviceInfoTypeUniqueDeviceID
      • EmergencyCallDataValueType
      • JCard
      • KeyItemChoiceEnum
      • LocationInfo
      • ProvidedBy
      • ProvidedByType
      • ProviderInfoType
      • RelatedParametersItemChoiceEnum
      • SchemaConsts
      • ServiceInfoType
      • SubcontractorPriorityType
      • SubscriberInfoType
      • TelContactInfo
      • TelItemChoiceEnum
      • VcardTypeTzItemChoiceEnum
      • adr
      • adrParameters
      • adrParametersGeo
      • adrParametersTZ
      • altid
      • anniversary
      • anniversaryParameters
      • bday
      • bdayParameters
      • caladruri
      • caladruriParameters
      • calscale
      • calscaleText
      • caluri
      • caluriParameters
      • categories
      • categoriesParameters
      • clientpidmap
      • email
      • emailParameters
      • fburl
      • fburlParameters
      • fn
      • fnParameters
      • gender
      • group
      • impp
      • imppParameters
      • key
      • keyParameters
      • kind
      • label
      • lang
      • langParameters
      • language
      • logo
      • logoParameters
      • mediatype
      • member
      • memberParameters
      • n
      • nParameters
      • nickname
      • nicknameParameters
      • note
      • noteParameters
      • org
      • orgParameters
      • photo
      • photoParameters
      • pid
      • pref
      • prodid
      • related
      • relatedParameters
      • relatedParametersText
      • role
      • roleParameters
      • sex
      • sortas
      • sound
      • soundParameters
      • source
      • sourceParameters
      • tel
      • telParameters
      • title
      • titleParameters
      • type
      • typeText
      • uid
      • url
      • urlParameters
      • valuetimestamp
      • vcardType
      • vcardTypeGeo
      • vcardTypeGeoParameters
      • vcardTypeTZ
      • vcardTypeTZParameters
      • vcards
    • AgencyLocator
      • LocatorRecord
      • LocatorRecordUri
      • LocatorRecordUriArray
      • NameSet
      • NameSetArray
    • BadActor
      • BadActorContents
    • CommonAlertingProtocol
      • alert
      • alertInfo
      • alertInfoArea
      • alertInfoAreaGeocode
      • alertInfoCategory
      • alertInfoCertainty
      • alertInfoEventCode
      • alertInfoParameter
      • alertInfoResource
      • alertInfoResponseType
      • alertInfoSeverity
      • alertInfoUrgency
      • alertMsgType
      • alertScope
      • alertStatus
    • ConferenceEvent
      • calltype
      • conferencedescriptiontype
      • conferencemediatype
      • conferencemediumtype
      • conferencestatetype
      • conferencetype
      • disconnectiontype
      • endpointstatustype
      • endpointtype
      • executiontype
      • hosttype
      • joiningtype
      • mediastatustype
      • mediatype
      • sidebarsbyvaltype
      • sipdialogidtype
      • statetype
      • uristype
      • uritype
      • userrolestype
      • userstype
      • usertype
    • DiscrepancyReporting
      • AdrDiscrepancyReport
      • AdrProblemEnum
      • BcfDiscrepancyReport
      • BcfProblemEnum
      • CallTakerDiscrepancyReport
      • CallTransferDiscrepancyReport
      • DRTypeEnum
      • DiscrepancyReport
      • DiscrepancyReportResponse
      • DiscrepancyResolution
      • DrResolutionEnum
      • DrServerityEnum
      • EsrpDiscrepancyReport
      • EsrpProblemEnum
      • GisDiscrepancyReport
      • GisProblemEnum
      • ImrDiscrepancyReport
      • ImrProblemEnum
      • LisDiscrepancyReport
      • LisProblemEnum
      • LogSignatureCertificateDiscrepancyReport
      • LogSignatureProblemEnum
      • LoggingDiscrepancyReport
      • LoggingProblemEnum
      • LostDiscrepancyReport
      • LostProblemEnum
      • LostQueryTypeEnum
      • McsDiscrepancyReport
      • NetworkDiscrepancyReport
      • NetworkProblemEnum
      • OriginatingServiceDiscrepancyReport
      • OriginatingServiceProblemEnum
      • PermissionsDiscrepancyReport
      • PermissionsProblemEnum
      • PolicyDiscrepancyReport
      • PolicyProblemEnum
      • PolicyStoreDiscrepancyReport
      • PolicyStoreProblemEnum
      • SipDiscrepancyReport
      • SipProblemEnum
      • StatusUpdate
      • TestCallDiscrepancyReport
      • TestCallProblemEnum
    • ECall
      • ackType
      • ackTypeActionResult
      • capabilitiesType
      • controlType
      • requestType
      • requestTypeText
    • Geocode
      • GeoCodeCivicAddress
      • GeodeticData
    • Held
      • HeldConsts
      • HeldDevice
      • HeldError
      • HeldErrorMessage
      • HeldIp
      • LocationRequest
      • LocationResponse
      • LocationType
      • LocationUriSet
    • HttpUtils
      • AsyncHttpRequestor
      • HttpMethodEnum
      • HttpResults
    • I3SubNot
      • AbandonedCall
      • DequeueRegistrationRequestBody
      • DequeueRegistrationResponseBody
      • ElementState
      • ElementStateType
      • EsrpNotify
      • GapOverlap
      • QueueState
      • QueueStateType
      • SecurityPostureType
      • ServiceState
      • ServiceStateType
      • ServiceType
      • SubNotConsts
      • calltype
      • conferencedescriptiontype
      • conferencemediatype
      • conferencemediumtype
      • conferencestatetype
      • conferencetype
      • disconnectiontype
      • endpointstatustype
      • endpointtype
      • executiontype
      • hosttype
      • joiningtype
      • mediastatustype
      • mediatype
      • sidebarsbyvaltype
      • sipdialogidtype
      • statetype
      • uristype
      • uritype
      • userrolestype
      • userstype
      • usertype
    • I3V3.LogEvents
      • AdditionalAgencyLogEvent
      • AdditionalDataQueryLogEvent
      • AdditionalDataResponseLogEvent
      • AgencyIdArray
      • AgentStateChangeLogEvent
      • AliLocationQueryLogEvent
      • AliLocationResponseLogEvent
      • CallEndLogEvent
      • CallIdArray
      • CallLogEvent
      • CallProcessLogEvent
      • CallSignalingMessageLogEvent
      • CallStartLogEvent
      • CallStateChangeLogEvent
      • CallTransferLogEvent
      • DiscrepancyReportLogEvent
      • EidoDeniedLogEvent
      • EidoDereferenceFactoryQueryLogEvent
      • EidoDereferenceFactoryQueryResponseLogEvent
      • EidoLogEvent
      • EidoTransmissionErrorLogEvent
      • ElementStateChangeLogEvent
      • GatewayCallLogEvent
      • HookflashLogEvent
      • I3LogEventContent
      • IncidentClearLogEvent
      • IncidentIdArray
      • IncidentLinkLogEvent
      • IncidentMergeLogEvent
      • IncidentReopenLogEvent
      • IncidentSplitLogEvent
      • IncidentUnLinkLogEvent
      • IncidentUnMergeLogEvent
      • KeepAliveFailureLogEvent
      • LegacyDigitsLogEvent
      • LocationQueryLogEvent
      • LocationResponseLogEvent
      • LogEvent
      • LogEventContainer
      • LogEventContainerArray
      • LogEventIdArray
      • LostQueryLogEvent
      • LostResponseLogEvent
      • MalformedMessageLogEvent
      • MediaEndLogEvent
      • MediaStartLogEvent
      • MessageLogEvent
      • NonRtpMediaMessageLogEvent
      • PolicyChangeLogEvent
      • QueueStateChangeLogEvent
      • RecCallEndLogEvent
      • RecCallStartLogEvent
      • RecMediaEndLogEvent
      • RecMediaStartLogEvent
      • RecordingFailedLogEvent
      • RouteLogEvent
      • RouteRuleMsgLogEvent
      • ServiceStateChangeLogEvent
      • SipRecMetadataLogEvent
      • SubParamsType
      • SubscribeLogEvent
      • SubscriptionRequestedLogEvent
      • SubscriptionRequestedResponseLogEvent
      • SubscriptionTerminatedLogEvent
      • SubscriptionTerminatedResponseLogEvent
      • VersionsLogEvent
      • WebSocketEstablishedLogEvent
      • WebSocketTerminatedLogEvent
    • I3V3.LoggingHelpers
      • I3LogEventClient
      • I3LogEventClientMgr
      • I3LoggingErrorDelegate
      • I3LoggingUtils
      • LoggingServerStatusChangedDeletate
    • Lost
      • DisplayName
      • FindService
      • FindServiceResponse
      • GetServiceBoundary
      • GetServiceBoundaryResponse
      • ListServices
      • ListServicesByLocation
      • ListServicesByLocationResponse
      • ListServicesResponse
      • LocationUsed
      • LostErrors
      • LostHelper
      • LostMsgBase
      • LostPath
      • LostRedirect
      • LostWarnings
      • Mapping
      • PathVia
      • ServiceBoundaryReference
    • Msag
      • MsagData
      • PidfLoData
    • Ng911CertUtils
      • CertUtils
      • DistinguishedNameParams
      • KeyUsageParams
      • Ng911SanParams
      • Roles
    • Ng911Common
      • ConditionTypeEnum
      • I3JoseHeader
      • I3Jws
      • VersionItemType
      • VersionServiceInfoType
      • VersionsArrayType
    • Ng911Lib.Utilities
      • ContentTypes
      • JsonHelper
      • PurposeTypes
      • TimeUtils
      • Utf8StringWriter
      • XmlHelper
    • NgWebSockets
      • NgWebSocketClient
      • WebSocketMessageReceived
    • Pidf
      • ArcBand
      • Axis
      • Circle
      • CivicAddress
      • Confidence
      • Device
      • DirectionType
      • DynamicType
      • Ellipse
      • Ellipsoid
      • Exterior
      • GeoPriv
      • LinearRing
      • Orientation
      • PdfEnum
      • Person
      • Point
      • Polygon
      • Position
      • Presence
      • Prism
      • PrismBase
      • Radius
      • Sphere
      • Status
      • Tuple
      • locInfoType
      • locPolicyType
    • PolicyRouting
      • ActionBase
      • AdditionalDataCondition
      • BodyPartCondition
      • BusyAction
      • CallSourceCondition
      • CallSuspicionCondition
      • CallingNumberVerificationStatusCondition
      • CapCondition
      • ConditionBase
      • IncomingQueueCondition
      • InvokePolicyAction
      • LocationCondition
      • LogAction
      • LostServiceUrnCondition
      • MimeBodyCondition
      • NormalHextHopCondition
      • NotifyAction
      • OpCode
      • Pref
      • PrrLocation
      • QueueStateCondition
      • RequestUriCondition
      • RouteAction
      • Rule
      • SdpOfferCondition
      • SecurityPostureCondition
      • ServiceStateCondition
      • SipHeaderCondition
      • TimePeriodCondition
    • PolicyStore
      • Policy
      • PolicyArray
      • PolicyEnum
      • PolicyEnumArray
      • PolicyTypeEnum
    • SipRecMetaData
      • dataMode
      • group
      • name
      • nameID
      • participant
      • participantsessionassoc
      • participantsessionassocParam
      • participantstreamassoc
      • reason
      • recording
      • requestsnapshot
      • session
      • sessionrecordingassoc
      • stream
    • TestCall
      • ConditionType
      • PrrTest
      • SendCallRequests
    • Veds
      • ActivityLocationAssociationType
      • ActivityType
      • AddressType
      • AirbagCategoryCodeSimpleType
      • AirbagCategoryCodeType
      • AirbagType
      • AngleMeasureType
      • AssociationType
      • AutomatedCrashNotificationType
      • BinaryType
      • CommercialCarrierUSDOTNumberType
      • ComplexObjectType
      • ContactActivityType
      • ContactInformationType
      • ContactInformationType1
      • ConveyanceType
      • CrashPersonRoleCodeSimpleType
      • CrashPersonRoleCodeType
      • CrashPersonType
      • CrashPersonType1
      • CrashType
      • CrashType1
      • CrashVehicleType
      • CrossStreetType
      • DateType
      • DatumCodeSimpleType
      • DatumCodeType
      • DocumentType
      • DriverLicenseBaseType
      • DriverLicenseType
      • DrivingIncidentType
      • FullTelephoneNumberType
      • IdentificationType
      • ImageType
      • IncidentType
      • InternationalTelephoneNumberType
      • ItemType
      • ItemsChoiceType
      • LatitudeCoordinateType
      • LatitudeDegreeType
      • LocationType
      • LongitudeCoordinateType
      • LongitudeDegreeType
      • MeasurePointValueType
      • MeasureType
      • NotificationDestinationOrganizationType
      • NotificationDeviceTypeCodeSimpleType
      • NotificationDeviceTypeCodeType
      • NotificationOriginatingOrganizationType
      • OrganizationContactInformationAssociationType
      • OrganizationType
      • PersonContactInformationAssociationType
      • PersonLanguageType
      • PersonNameTextType
      • PersonNameType
      • PersonType
      • PersonType1
      • PowerSourceCategoryCodeSimpleType
      • PowerSourceCategoryCodeType
      • ProperNameTextType
      • ReferenceType
      • SEXCodeSimpleType
      • SEXCodeType
      • SpeedMeasureType
      • StreetType
      • StructuredAddressType
      • TangibleItemType
      • TelephoneNumberType
      • TextType
      • TwoDimensionalGeographicCoordinateType
      • VEDSNotificationOriginatorCodeSimpleType
      • VEDSNotificationOriginatorCodeType
      • VehicleAutonomousCapabilityCodeSimpleType
      • VehicleAutonomousCapabilityCodeType
      • VehicleBodyCategoryCodeSimpleType
      • VehicleBodyCategoryCodeType
      • VehicleCrashPulseType
      • VehicleFinalRestOrientationCodeSimpleType
      • VehicleFinalRestOrientationCodeType
      • VehiclePropulsionStorageCodeSimpleType
      • VehiclePropulsionStorageCodeType
      • VehicleSeatLocationCategoryCodeSimpleType
      • VehicleSeatLocationCategoryCodeType
      • VehicleSeatType
      • VehicleType
      • WeightMeasureType
      • anyURI
      • boolean
      • date
      • dateTime
      • gYear
      • nonNegativeInteger
      • string

    Class JsonHelper

    This is a static class that performs various JSON related functions such as serialization and deserialization.

    Inheritance
    object
    JsonHelper
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Ng911Lib.Utilities
    Assembly: Ng911Lib.dll
    Syntax
    public static class JsonHelper

    Methods

    | Edit this page View Source

    DeserializeFromString<T>(string)

    Deserializes a JSON string into an object.

    Declaration
    public static T DeserializeFromString<T>(string str)
    Parameters
    Type Name Description
    string str

    Input string to deserialize

    Returns
    Type Description
    T

    Returns an object of the specified type if successful or null if an error occurred.

    Type Parameters
    Name Description
    T

    Specifies the type of the object to deserialize the JSON string into.

    | Edit this page View Source

    DeserializeFromString<T>(string, out Exception)

    Deserializes a JSON string into an object.

    Declaration
    public static T DeserializeFromString<T>(string str, out Exception Excpt)
    Parameters
    Type Name Description
    string str

    Input JSON string

    Exception Excpt

    Output. Set to the exception object that was caught. This will be non-null if the return value is null.

    Returns
    Type Description
    T

    Returns an object of the specified type if successful or null if an error occurred.

    Type Parameters
    Name Description
    T

    Specifies the type of the object to deserialize the JSON string into.

    Remarks

    Use this version of the method of you need to log and/or troubleshoot JSON issues.

    | Edit this page View Source

    SerializeToString(object)

    Serializes an object into an indented JSON string.

    Declaration
    public static string SerializeToString(object Obj)
    Parameters
    Type Name Description
    object Obj

    Input object to serialize

    Returns
    Type Description
    string

    Returns an indented JSON string if no errors occurred. Returns null if an error occurred.

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX