Finished debugging

- cURL now properly handles JSON
- Properly handles regex etc