增加解析json key和数据类型

This commit is contained in:
2023-03-29 14:40:59 +08:00
parent f24fe13e4b
commit f30bf03b58
2 changed files with 142 additions and 21 deletions

View File

@ -18,10 +18,30 @@ const (
KeywordArrayEnd = "]"
// KeywordColon 冒号
KeywordColon = ":"
// KeywordDot .
KeywordDot = "."
// KeywordDoubleQuote 双引号
KeywordDoubleQuote = `"`
// KeywordEscapeSymbol 转义符号
KeywordEscapeSymbol = `\`
// KeywordSpace 空格
KeywordSpace = " "
// KeywordMinus 负号
KeywordMinus = "-"
// KeywordTrueStart true的起始值
KeywordTrueStart = "t"
// KeywordFalseStart false的起始值
KeywordFalseStart = "f"
KeywordZero = "0"
KeywordOne = "1"
KeywordTwo = "2"
KeywordThree = "3"
KeywordFour = "4"
KeywordFive = "5"
KeywordSix = "6"
KeywordSeven = "7"
KeywordEight = "8"
KeywordNine = "9"
)
const (
@ -33,6 +53,8 @@ const (
ValueTypeInteger = "int64"
// ValueTypeFloat float类型
ValueTypeFloat = "float64"
// ValueTypeNumber 数字
ValueTypeNumber = "number"
// ValueTypeMap map数据
ValueTypeMap = "map"
// ValueTypeArray 数组