Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add JsonLd::addValues() #163

Open
klimov-paul opened this issue Aug 13, 2019 · 0 comments
Open

Add JsonLd::addValues() #163

klimov-paul opened this issue Aug 13, 2019 · 0 comments

Comments

@klimov-paul
Copy link
Contributor

klimov-paul commented Aug 13, 2019

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 *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant