denniskniep / GQLRaider

GQL Burp Extension
21 stars 14 forks source link

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

Open mzember opened 2 years ago

mzember commented 2 years ago

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