Show / Hide Table of Contents

Class JsonUtils

Inheritance
System.Object
JsonUtils
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: AttackSurfaceAnalyzer.Utils
Assembly: AsaLib.dll
Syntax
public static class JsonUtils

Methods

| Improve this Doc View Source

Dehydrate(CollectObject)

Serialize an object with Newtonsoft.Json

Declaration
public static string Dehydrate(CollectObject colObj)
Parameters
Type Name Description
CollectObject colObj

The object to serialize

Returns
Type Description
System.String

The bytes of the serialized object

| Improve this Doc View Source

Hydrate(String, RESULT_TYPE)

Deserialize a Collect object from a RawCollectResult

Declaration
public static CollectObject Hydrate(string serialized, RESULT_TYPE type)
Parameters
Type Name Description
System.String serialized
RESULT_TYPE type
Returns
Type Description
CollectObject

An appropriately typed collect object based on the collect result passed in, or null if the RESULT_TYPE is unknown.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX