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

"Not a JSON Object" error when square brackets occur #9

Open
mzember opened this issue Nov 24, 2022 · 0 comments
Open

"Not a JSON Object" error when square brackets occur #9

mzember opened this issue Nov 24, 2022 · 0 comments

Comments

@mzember
Copy link

mzember commented Nov 24, 2022

I am running into a "Not a JSON Object" error.

My JSON is wrapped with square brackets [ ].

It would probably help to use JsonElement.getAsJsonArray() instead of JsonElement.getAsJsonObject() here:

https://github.com/PortSwigger/graphql-raider/blob/0d2a8484716f2975745f99d357b538c1aa5e4949/src/main/java/extension/gql/GqlRequestParser.java#L24

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

No branches or pull requests

1 participant