Skip to content

JsonArrayElement

Create a JSON Array element. This component should be used inside of a JsonArray component. Can either be provided children, or a JS value which will be serialized to JSON.

Overload 1

Create a JSON Array element by providing a JS value that will be serialized to JSON.

import { JsonArrayElement } from "@alloy-js/json";
<JsonArrayElement jsValue={unknown} />

Props

jsValueunknown

Overload 2

Create a JSON Array element by providing children.

import { JsonArrayElement } from "@alloy-js/json";
<JsonArrayElement >
{children}
</JsonArrayElement>

Props

childrenChildren

See also