Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get JSON output #10

Open
stessaris opened this issue Jan 21, 2022 · 1 comment
Open

How to get JSON output #10

stessaris opened this issue Jan 21, 2022 · 1 comment

Comments

@stessaris
Copy link

With clingo you can use the --outf=2 argument to generate JSON output, and the --clingo-help of asprin states that it can be used as well. However, by using it you get a RuntimeError from clingo.Controller in Asprin. __get_control .

I guess that outf argument is not supported by the clingo Python API. I guess that --clingo-help should mention only the options that can be used.

Is there any way to get JSON output from asprin?

@javier-romero
Copy link
Collaborator

Thank you @stessaris!

You are right, clingo--help should only mention the options that can be used.

And unfortunately, the answer to the last question is no, but this is a nice feature to have in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants