Module

JSON.Array

Package
purescript-json
Repository
garyb/purescript-json

#fromFoldable Source

fromFoldable :: forall f. Foldable f => f JSON -> JArray

Creates a JArray from a Foldable source of JSON.

#singleton Source

singleton :: JSON -> JArray

Creates a JArray with a single entry.

#index Source

index :: Int -> JArray -> Maybe JSON

Attempts to read a value from the specified index of a JArray.

#toUnfoldable Source

toUnfoldable :: forall f. Unfoldable f => JArray -> f JSON

Unfolds a JArray into JSON items

Re-exports from JSON.Internal

#JArray Source

data JArray

A type that represents JSON arrays. Similar to the JSON type, this is not a PureScript type, but represents the underlying representation for JSON arrays.

Instances

#toArray Source

toArray :: JArray -> Array JSON

Converts a JArray into an Array of JSON values

#length Source

#fromArray Source

fromArray :: Array JSON -> JArray

Converts an Array of JSON values into a JArray.

#empty Source

empty :: JArray

An empty JArray.