module AI::Provider::JSONValue

Defined in:

ai/provider/json_value/json_value.cr

Class Method Summary

Class Method Detail

def self.json_array?(value) : Bool #

Checks if the given value is a JSON array.


[View source]
def self.json_object?(value) : Bool #

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


[View source]
def self.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.


[View source]