read json with `require`