Welcome to the 'Add Employee' Page

Enter the employee's details below, making sure you use the correct formats:












The code uses a 'fetch()' API to make an HTTP POST request to post the JSON data to a server - in this case we are test-posting to 'JSONPlaceholder todos'.

Here is the JSON string sent to the server:


Each Employee object can also be added to a JSON Array as each employee is added:


The fetch API can also be used to make an HTTP GET request to receive JSON data for processing etc. Again, using 'JSONPlaceholder users'.

Employee at index [0]: