Use JSON.secure

- Add JSON.secure as global option in Docs
- Add compat layer for 1.4