FirebaseAILogic Framework Reference Stay organized with collections Save and categorize content based on your preferences.
JSONValue
@available(iOS15.0,macOS12.0,tvOS15.0,watchOS8.0,*)publicenumJSONValue:SendableextensionJSONValue:DecodableextensionJSONValue:EncodableextensionJSONValue:EquatableRepresents a value in one of JSON’s data types.
This may be decoded from, or encoded to, agoogle.protobuf.Value.
A
nullvalue.Declaration
Swift
casenullA numeric value.
Declaration
Swift
casenumber(Double)A string value.
Declaration
Swift
casestring(String)A boolean value.
Declaration
Swift
casebool(Bool)A JSON object.
Declaration
Swift
caseobject(JSONObject)An array of
JSONValues.Declaration
Swift
casearray([JSONValue])Declaration
Swift
publicinit(fromdecoder:Decoder)throwsDeclaration
Swift
publicfuncencode(toencoder:Encoder)throws
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-28 UTC.