Table of Contents

Class JsonExtractor

Namespace
Utilty
Assembly
DougWare.OobaboogaAPIHelper.dll
public static class JsonExtractor
Inheritance
JsonExtractor
Inherited Members

Methods

ExtractJsonFromString(string)

Looks for JSON objects or arrays within a string and returns the first one found. Handy for dealing with API responses that contain extra text.

public static string ExtractJsonFromString(string input)

Parameters

input string

The text to search

Returns

string

JSON if found

Exceptions

ArgumentException

An error if not found