Trying to parse a string json data with packed event, getting error. #143
Code-Crash
started this conversation in
General
Replies: 1 comment 3 replies
-
|
You probably need to parse the JSON first. let data = `...`
const event = JSON.parse(data);
event.event = strFromU8(unzlibSync(strToU8(event.event, true))); |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to parse the string JSON with the compress event as below, but it's throwing an error,
it's throwing
Error: invalid zlib dataIs there any way to parse it somehow?
I want to parse the string first and uncompress the event, trying a bunch of things but not getting anywhere, please have a look.
Note: Actual packed data is being unencoded while posting the issue by github.
Beta Was this translation helpful? Give feedback.
All reactions