Renamed the `toJSON` method to `build` for the JSON.Builder.

Renamed method to avoid conflicts with other libraries.

Fixes #186