Add new task to JSON array

New tasks are currently appended to the end of the array.