Versions in this module Expand all Collapse all v1 v1.0.0 Apr 16, 2025 Changes in this version + func ClearArray(v *Value) + func ClearObject(v *Value) + func Copy(dst, src *Value) + func Equal(lhs, rhs *Value) bool + func EraseArrayElement(v *Value, index, count int) + func FindObjectIndex(v *Value, key string) int + func Free(v *Value) + func GetArrayCapacity(v *Value) int + func GetArraySize(v *Value) int + func GetBoolean(v *Value) bool + func GetNumber(v *Value) float64 + func GetObjectCapacity(v *Value) int + func GetObjectKey(v *Value, index int) string + func GetObjectSize(v *Value) int + func GetString(v *Value) string + func Move(dst, src *Value) + func PopBackArrayElement(v *Value) + func RemoveObjectValue(v *Value, index int) + func ReserveArray(v *Value, capacity int) + func ReserveObject(v *Value, capacity int) + func SetArray(v *Value, capacity int) + func SetBoolean(v *Value, b bool) + func SetNumber(v *Value, n float64) + func SetObject(v *Value) + func SetString(v *Value, s string) + func ShrinkArray(v *Value) + func ShrinkObject(v *Value) + func Swap(lhs, rhs *Value) + type Member struct + K string + V *Value + type ParseError int + const PARSE_EXPECT_VALUE + const PARSE_INVALID_STRING_CHAR + const PARSE_INVALID_STRING_ESCAPE + const PARSE_INVALID_UNICODE_HEX + const PARSE_INVALID_UNICODE_SURROGATE + const PARSE_INVALID_VALUE + const PARSE_MISS_COLON + const PARSE_MISS_COMMA_OR_CURLY_BRACKET + const PARSE_MISS_COMMA_OR_SQUARE_BRACKET + const PARSE_MISS_KEY + const PARSE_MISS_QUOTATION_MARK + const PARSE_NUMBER_TOO_BIG + const PARSE_OK + const PARSE_ROOT_NOT_SINGULAR + func Parse(v *Value, json string) ParseError + func (e ParseError) Error() string + type StringifyError int + const STRINGIFY_OK + func Stringify(v *Value) (string, StringifyError) + func (e StringifyError) Error() string + type Value struct + A []*Value + N float64 + O []Member + S string + Type ValueType + func FindObjectKey(v *Value, key string) (*Value, bool) + func GetArrayElement(v *Value, index int) *Value + func GetObjectValue(v *Value, index int) *Value + func GetObjectValueByKey(v *Value, key string) *Value + func InsertArrayElement(v *Value, index int) *Value + func PushBackArrayElement(v *Value) *Value + func SetObjectValue(v *Value, key string) *Value + func (v Value) String() string + type ValueType int + const ARRAY + const FALSE + const NULL + const NUMBER + const OBJECT + const STRING + const TRUE + func GetType(v *Value) ValueType v0 v0.1.0 Mar 26, 2025