C#如何解析下列Json?{"type":"CIMPointSymbol","symbolLayers":[{"type":"CIMVectorMarker","size":14.258267707553848,"rotateClockwise":true,"anchorPointUnits":"Points","dominantSizeAxis3D":"Z","markerGraphics":[{"type":"CIMMarkerGraphic","geometry":

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/27 17:04:27
C#如何解析下列Json?{"type":"CIMPointSymbol","symbolLayers":[{"type":"CIMVectorMarker","size":14.2582677075

C#如何解析下列Json?{"type":"CIMPointSymbol","symbolLayers":[{"type":"CIMVectorMarker","size":14.258267707553848,"rotateClockwise":true,"anchorPointUnits":"Points","dominantSizeAxis3D":"Z","markerGraphics":[{"type":"CIMMarkerGraphic","geometry":
C#如何解析下列Json?
{"type":"CIMPointSymbol","symbolLayers":[
{"type":"CIMVectorMarker","size":14.258267707553848,"rotateClockwise":true,"anchorPointUnits":"Points","dominantSizeAxis3D":"Z","markerGraphics":[
{"type":"CIMMarkerGraphic","geometry":
{"paths":
[ [ [-0.0850393700251715,7.45511810554008],
[-0.0850393700251715,-6.77480314533871] ],
[ [-4.50708661133412,3.23149606095654],
[4.11023621788332,3.23149606095654] ],
[ [-5.83937007506181,-3.8551181078078],
[-2.83464566750573,-6.80314960201376],
[2.77795275415562,-6.80314960201376],
[5.55590550831124,-3.94015747783297] ] ] },
"symbol":
{"type":"CIMLineSymbol","symbolLayers":[{"type":"CIMFilledStroke","width":1,"pattern":
{"type":"CIMSolidPattern","color":[225,180,244,255] },
"capStyle":"Round","joinStyle":"Bevel","miterLimit":10,"alignment":"Center","lineStyle3D":"Tube","patternFollowsStroke":true}]}
}
]}
]}
如果数据库中有上千条这样的Json,该如何做?

C#如何解析下列Json?{"type":"CIMPointSymbol","symbolLayers":[{"type":"CIMVectorMarker","size":14.258267707553848,"rotateClockwise":true,"anchorPointUnits":"Points","dominantSizeAxis3D":"Z","markerGraphics":[{"type":"CIMMarkerGraphic","geometry":
json不需要什么解释,结构已经很简单里.
一对”[]“表示一个数组,“[]”中间每一个“{}"都是数组的一个元素.
{}表示一个对象,{}内每一个":"和其前后组成对象的一个属性:”属性:属性值“
比如上面的”Uid:用户编号“就是他外层{}的一个属性.
属性的值还可以是对象或数组.