We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to be able to easily parse the response from the zpages extension to programatically inspect configuration.
Format the response in JSON if the Accept header is set to application/json.
Accept
application/json
I'm sure it's possible to parse the HTML, but it's cumbersome, whereas all languages support some form of JSON parsing.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Problem Statement
I want to be able to easily parse the response from the zpages extension to programatically inspect configuration.
Proposed Solution
Format the response in JSON if the
Accept
header is set toapplication/json
.Alternatives
I'm sure it's possible to parse the HTML, but it's cumbersome, whereas all languages support some form of JSON parsing.
Prior Art
Additional Context
The text was updated successfully, but these errors were encountered: