TensorStore
tensorstore::Context::Resource<Provider>::FromJson
Initializing search
    tensorstore
    tensorstore
      • Tutorial
      • Indexing
      • API reference
      • API reference
        • Core
          • CBatch
          • CTransaction
          • CContext
            • Types
              • TToJsonOptions
              • CSpec
              • CResource
                • Types
                • Constructors
                • Methods
                  • FDefaultSpec
                  • Fget
                  • Fhas_resource
                  • Fvalid
                  • FToJson
                  • FFromJson
                  • FBindContext
                  • FStripContext
                • Friend functions
            • Constructors
            • Methods
            • Conversion operators
            • Friend functions
            • Related Types
          • CSchema
          • CSpec
          • CTensorStore
        • Indexing
        • Data types
        • Array
        • Key-value storage
        • Downsampling
        • Utilities
      • Building and Installing
      • Environment variables
      • JSON Spec
      • Index space
      • Schema
      • Context framework
      • Drivers
      • Key-Value Storage Layer
    #include "tensorstore/context.h"
    static Result<Resource<Provider>>
    tensorstore::Context::Resource<Provider>::FromJson(
        
    ::nlohmann::json j,
        
    const FromJsonOptions& options = FromJsonOptions{});

    Returns a resource spec from a JSON representation.

    Back to top
    Previous tensorstore::Context::Resource<Provider>::ToJson
    Next tensorstore::Context::Resource<Provider>::BindContext