Private API

This page lists non-exported (internal) symbols of CTModelsJSON, CTModelsJLD, CTModels.Serialization.


From CTModelsJSON

_apply_over_grid

_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_infosFunction

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

_json_to_matrix

CTModelsJSON._json_to_matrixFunction

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_matrixFunction

Convert an optional JSON field to Matrix{Float64} or nothing.

Arguments

  • blob_field: JSON array field or nothing

Returns

  • Matrix{Float64} or nothing

_serialize_infos

CTModelsJSON._serialize_infosFunction

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_valueFunction

Serialize a single value to JSON-compatible format. Returns a tuple: (serializedvalue, symbolpaths) where symbol_paths tracks Symbol locations.