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

Support an array shorthand? #7

Open
metasansana opened this issue Jan 7, 2018 · 0 comments
Open

Support an array shorthand? #7

metasansana opened this issue Jan 7, 2018 · 0 comments

Comments

@metasansana
Copy link
Contributor

Similar to property shorthands like key:key:value, an array shorthand should allow arrays to be describe in shorted form.

Proposed syntax:

{
  "list[0]": 0,
  "list[1]": 1,
  "list[2]": 2,
  "other:list[0]":0,
  "other:list[1]":1,
  "other:list[2]":2
}

Could yield:

{
 "list": [0,1,2],
 "other": {
   "list":[0,1,2]
 }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant