Extract the URL and domain name from a string and output in JSON format
Visit us at https://example.com
```json
{"url": "https://example.com", "domain": "example.com"}
```
Complete the following task based on the instruction and optional input provided.### Instruction:
Extract the URL and domain name from a string and output in JSON format

### Input:
Visit us at https://example.com

### Output:
```json
{"url": "https://example.com", "domain": "example.com"}
```