Skip to content

SecureJson

Namespace: Vercel.AI.ProviderUtils

public static class SecureJson

Parses JSON and rejects __proto__ and constructor.prototype payload keys.

Inheritance: object

View source

public static JsonElement Parse(string text)

Parses <code class=“paramref”>text</code> and returns a detached element.

Parameters

Name Type Description
text string

Returns: JsonElement

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product