Show / Hide Table of Contents

Class JsonUtils

Inheritance
System.Object
JsonUtils
Namespace: Microsoft.CST.AttackSurfaceAnalyzer.Utils
Assembly: AsaLib.dll
Syntax
public static class JsonUtils : object

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
In This Article
Back to top Generated by DocFX