module

AI::Provider::JSONValue

Class methods

json_array?(value) : Bool

Checks if the given value is a JSON array.

Source
json_object?(value) : Bool

Checks if the given value is a JSON object (hash with string keys).

Source
json_value?(value) : Bool

Checks if the given value is a valid JSON value.

A JSON value can be: null, string, number, boolean, array, or object.

Source