Home > Back-end >  Json schema of the same number but not sure how to check the format Json
Json schema of the same number but not sure how to check the format Json

Time:10-04

To check the json, a fixed format of the json object, but not sure, this kind of circumstance should be how to write a schema file?
Example as follows, including attr_1 ~ attr_6 part need check, quantity not sure about how to write a schema
{
"Attr_1" : {
"Attr_name" : "the value",
"Attr_value" : "13513.6"
},
"Attr_2" : {
"Attr_name" : "value" yesterday,
"Attr_value" : "18020.8"
},
"Attr_3" : {
"Attr_name" : "rose",
"Attr_value" : "25.01%"
},
"Attr_4" : {
"Attr_name" : "this month accumulative total,"
"Attr_value" : "1144206.2"
},
"Attr_5" : {
"Attr_name" : "over the same period last month accumulative total,"
"Attr_value" : "1147521.5"
},
"Attr_6" : {
"Attr_name" : "cumulative monthly,"
"Attr_value" : "0.29%"
},
"Date" : "20171109",
"Target_name" : "business income",
"Target_unit" : "ten thousand yuan",
"Temp_id" : "mb_18
"}
  • Related