|
|
|
|
|
by verhovsky
1553 days ago
|
|
The JSON output just dumps curlconverter's internal representation of a parsed curl command. You could use it if you want to use curlconverter to parse curl commands and then do stuff with that parsing yourself in a language other than JavaScript. You would install the command line tool then use your language's command-running library. For example, from Python: import subprocess
import json
result = subprocess.run(['curlconverter', '--language', 'json', 'example.com'], capture_output=True, text=True)
command = json.loads(result.stdout)
print(command)
|
|