simple json api with name and local time routes

use .json instead of .send when sending json or set Content-Type to 'application/json' in the headers.