An identifier: productId A product name: productName A selling cost for the consumer: price An optional set of tags: tags . For example: { "productId" : 1 , "productName" : "A green door" , "price" : 12.50 , "tags" : [ "home" , "green" ] } While generally straightforward, the example leaves some open questions. Here are just a few of them: What is productId ? Is productName required? Can the price be zero (0)? Are all of the tags string values? When you’re talking about a data format, you want to have metadata about what keys mean, including the valid inputs for those keys. JSON Schema is a proposed IETF standard how to answer those questions for data. Yes. the standard uses a JSON data document to describe data documents, most often that are also JSON data documents but could be in any number of other content types like text/xml . The $schema keyword states that this sch...
Comments
Post a Comment
We are open to discuss for the best Learn more how to optimize our business on our website? Please give a short line advice.