Working with JSON Linked Data usually means specification of the batch options.
For example:
{
"@type": "Organization",
"'address" : {
"@type": "PostalAddress",
"addressLocality" : "USA, CA",
"postalCode": "12345",
"streetAddress": "2nd ave, 17",
},
"email": "organization@example.com"
}
Creation of such JSON at the present state requires multiple invocations of JsonLd::addValue().
It is better to create a shortcut for adding batch of values at once - JsonLd::addValues()
| Q |
A |
| This Package Version |
0.15.0 |
| Laravel Framework Version |
5.8.31 |
| PHP version |
7.2 |
| Operating system |
* |
Working with JSON Linked Data usually means specification of the batch options.
For example:
{ "@type": "Organization", "'address" : { "@type": "PostalAddress", "addressLocality" : "USA, CA", "postalCode": "12345", "streetAddress": "2nd ave, 17", }, "email": "organization@example.com" }Creation of such JSON at the present state requires multiple invocations of
JsonLd::addValue().It is better to create a shortcut for adding batch of values at once -
JsonLd::addValues()