First API example using JSON encode/decode and file_get_contents