Share via


ParserHelper.IsJson Method (String, Boolean)

 

Checks if content is possibly a JSON.

Namespace:   Microsoft.WindowsAzure.Common.Internals
Assembly:  Microsoft.WindowsAzure.Common (in Microsoft.WindowsAzure.Common.dll)

Syntax

public static bool IsJson(
    string content,
    bool validate = false
)
public:
static bool IsJson(
    String^ content,
    bool validate = false
)
static member IsJson : 
        content:string *
        validate:bool = false -> bool
Public Shared Function IsJson (
    content As String,
    validate As Boolean
) As Boolean

Parameters

  • validate
    Type: System.Boolean

    If set to true will validate entire JSON for validity otherwise will just check the first character.

Return Value

Type: System.Boolean

True is content is possibly an JSON otherwise false.

See Also

ParserHelper Class
Microsoft.WindowsAzure.Common.Internals Namespace

Return to top