module
AI::Provider::JSONValue
Defined in:
ai/provider/json_value/json_value.crClass Method Summary
-
.json_array?(value) : Bool
Checks if the given value is a JSON array.
-
.json_object?(value) : Bool
Checks if the given value is a JSON object (hash with string keys).
-
.json_value?(value) : Bool
Checks if the given value is a valid JSON value.
Class Method Detail
def self.json_object?(value) : Bool
#
Checks if the given value is a JSON object (hash with string keys).
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.