Started to write the code to handle json API