Allow JSON service to create implicit arrays

Description

If you try to create an array using any of the JSON-based "set" commands:

  • config set

  • package set

  • server set

like so

you will get a struct with a key of "1".

 

You must first initialize "foo" as an array for it to work:

to get

Modify the JSONService such that if the "key" is a number, assume the user wants an array. This is a potentially breaking change. If you explicitly want a struct, you need to quote the key name like so:

Activity

Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Fix versions

Priority

Sentry

Created March 31, 2021 at 9:49 PM
Updated March 31, 2021 at 9:51 PM
Resolved March 31, 2021 at 9:51 PM