json: Make main exception safe.
project: Add specification file.