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

Invalid nested tools example in README.md #65

Open
nemorize opened this issue Sep 30, 2023 · 0 comments
Open

Invalid nested tools example in README.md #65

nemorize opened this issue Sep 30, 2023 · 0 comments

Comments

@nemorize
Copy link

nemorize commented Sep 30, 2023

editorjs-php/README.md

Lines 187 to 207 in 9446738

### Nested tools
Tools can contain nested values. It is possible with the `array` type.
Let the JSON input be the following:
```
{
"blocks": [
"type": list,
"data": {
"items": [
"first", "second", "third"
],
"style": {
"background-color": "red",
"font-color": "black"
}
}
]
}
```

I think it should be...

{ 
     "blocks": [
         {
             "type": "list",
             "data": { 
                 "items": [ 
                     "first", "second", "third" 
                 ], 
                 "style": { 
                     "background-color": "red", 
                     "font-color": "black" 
                 } 
             } 
         }
     ] 
 } 
@nemorize nemorize changed the title Invalid JSON in README.md Invalid nested tools example in README.md Sep 30, 2023
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