Insert an object into a JSON list in a file.
Required The file containing the list.
Required By default -1.
Required JSON object to insert
- The list must be the top level root.
- The JSON file is loaded in memory.
- uses: sanjacob/json-insert@v1
with:
file: shopping.json
item: |
{
"name": "Eggs",
"amount": 4
}This software is distributed under the 3-Clause BSD License.