Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JSON-LD: Is the name of the value necessary?

I'm currently working on adding a structured data of the web application in /about-page. I want to add there a property. In the following code, I'm using both the name and value (as I saw in the schema.org).

Q: Do I have to use only value without the name, and set eg Modularity as a value and drop the description?

<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "product",
"name":"Product_name",
"additionalProperty":
    {
    "@type":"propertyValue",
    "name":"Main features",
    "value":
        [
            {
            "@type":"propertyValue",
            "name": "Detailed documentation",
            "value": "description_of_the_documentation"
            },  
            {
            "@type":"propertyValue",
            "name": "Fully responsive",
            "value": "description_of_the_responsiveness"
            }
        ],

    "@type":"propertyValue",
    "name":"Other features",
    "value":
        [
            {
            "@type":"propertyValue",
            "name": "Modularity",
            "value": "description_of_the_modularity"
            },  
            {
            "@type":"propertyValue",
            "name": "Frequent updates",
            "value": "description_of_the_updates"
            }
        ]
    }
}
</script>
like image 603
Michał T. Krawczyk Avatar asked Mar 02 '17 15:03

Michał T. Krawczyk


1 Answers

You could use a Boolean value for the value property.

{
  "@type": "PropertyValue",
  "name": "Modularity",
  "value": true
}

If you want to describe the feature, use the description property in addition.

like image 72
unor Avatar answered Nov 15 '22 09:11

unor