我有json字符串我想验证它我使用在线json格式错误显示请帮助我":错误:第1行的解析错误: {nodes:{创作 ---- ^ 期待' STRING'}'}'}'未定义' 我的json:"
-- if NULL would be fine:
select (select col from bar where 1=0) into v_foo from dual
-- if individual "NOT_FOUND" value should be set to avoid standard exception handling:
-- (it depends on your col type, so it could e.g. be 'NOT_FOUND' or -1
-- or to_date( 'yyyy-mm-dd', '2100-01-01') )
select nvl( (select col from bar where 1=0), 'NOT_FOUND' ) into v_foo from dual
答案 0 :(得分:1)
在JSON中,键必须是字符串,用双引号编写,字符串值也必须用双引号写。
{
"nodes": {
"Creation": {
"color": "red",
"shape": "dot",
"x": 0.4,
"y": 0,
"fixed": true,
"alpha": 1
},
"Send_To_Modification": {
"color": "CLR.branch",
"shape": "dot",
"x": 0.4,
"y": 0,
"fixed": true,
"alpha": 1
},
"Send_To_Verification": {
"color": "CLR.branch",
"shape": "dot",
"x": 0.4,
"y": 0,
"fixed": true,
"alpha": 1
},
"IBAN checking": {
"color": "CLR.branch",
"shape": "dot",
"x": 0.4,
"y": 0,
"fixed": true,
"alpha": 1
},
"Send_To_Kassip(KWD SAA Down)": {
"color": "CLR.branch",
"shape": "dot",
"x": 0.4,
"y": 0,
"fixed": true,
"alpha": 1
}
},
"edges": {
"Creation": {
"Send_To_Modification": {
"length": "001"
},
"Send_To_Verification": {
"length": "001"
},
"IBAN checking": {
"length": "001"
},
"Send_To_Kassip(KWD SAA Down)": {
"length": "001"
}
}
}
}