Documentation
¶
Index ¶
Constants ¶
View Source
const ( TypeUnknown uint8 = iota TypeNull TypeNumber TypeString TypeBool TypeObject TypeArray )
Definimos tipos internos para evitar lógica pesada
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ObjectJSON ¶
type ObjectJSON struct {
Data []byte // Referencia al JSON original (el "bloque de piedra")
Keys []string // Nombres de las llaves
Coords []ValueCoord // Coordenadas de los valores en el bloque Data
}
func ParseToOffsets ¶
func ParseToOffsets(data []byte) (*ObjectJSON, error)
ParseToOffsets escanea el JSON y anota dónde está cada valor sin hacer copias
func (*ObjectJSON) Get ¶
func (o *ObjectJSON) Get(key string) any
type ValueCoord ¶
Click to show internal directories.
Click to hide internal directories.