Private API
This page lists non-exported (internal) symbols of CTModelsJSON, CTModelsJLD, CTModels.Serialization.
From CTModelsJSON
_apply_over_grid
CTModelsJSON._apply_over_grid — Function
Apply a function over a grid (broadcast), or return nothing if input is nothing.
_convert_matrices_for_json!
CTModelsJSON._convert_matrices_for_json! — Function
Convert Matrix fields to Vector{Vector} for JSON3 export.
JSON3 flattens Matrix{Float64} into 1D arrays, losing the 2D structure. This function converts all matrix fields to Vector{Vector} format to preserve dimensions.
_deserialize_infos
CTModelsJSON._deserialize_infos — Function
Convert Dict{String,Any} back to Dict{Symbol,Any} after JSON deserialization. Uses symbol_keys metadata to restore Symbol types where they were originally present.
_deserialize_value
CTModelsJSON._deserialize_value — Function
Deserialize a single value from JSON format. Uses symbol_keys to restore Symbol types at the correct paths.
_json_to_matrix
CTModelsJSON._json_to_matrix — Function
Convert a JSON field (Vector{Vector} via stack) to Matrix{Float64}.
JSON exports matrices as Vector{Vector}. After stack(blob[field]; dims=1), we get either a Matrix (multi-D) or Vector (1D). This normalizes to Matrix.
Arguments
blob_field: JSON array field (Vector of Vectors)
Returns
Matrix{Float64}: (ntimepoints, n_dim)
_json_to_optional_matrix
CTModelsJSON._json_to_optional_matrix — Function
Convert an optional JSON field to Matrix{Float64} or nothing.
Arguments
blob_field: JSON array field or nothing
Returns
Matrix{Float64}ornothing
_serialize_infos
CTModelsJSON._serialize_infos — Function
Convert Dict{Symbol,Any} to Dict{String,Any} for JSON serialization. Only serializes JSON-compatible types (numbers, strings, bools, arrays, dicts). Returns a tuple: (serializeddict, symbolkeys) where symbol_keys tracks which values were Symbols.
_serialize_value
CTModelsJSON._serialize_value — Function
Serialize a single value to JSON-compatible format. Returns a tuple: (serializedvalue, symbolpaths) where symbol_paths tracks Symbol locations.