You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using jq.promised.raw, if you pass an invalid <json-string> as input then all future calls to jq.promised.raw will return an empty string "".
Example:
// Pass invalid JSON inawaitjq.promised.raw('{#@#}','.');// Result of the above is an empty string still.// Pass in valid JSONawaitjq.promised.raw('{"test":"test"}','.');// Result of the above is an empty string still.
This bug tripped me up but I figured out what causes it, let me know if you need more reproduction information.
The text was updated successfully, but these errors were encountered:
I don't know how to fix this one. I fixed it in my own code by doing an initial JSON.parse of the input JSON inside of a try/catch and returning an error instead of passing it to jq.promise.raw.
When using
jq.promised.raw
, if you pass an invalid<json-string>
as input then all future calls tojq.promised.raw
will return an empty string""
.Example:
This bug tripped me up but I figured out what causes it, let me know if you need more reproduction information.
The text was updated successfully, but these errors were encountered: