Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
daniele_tiles
Advocate II
Advocate II

Decrypt JSON compressed with lz-string

Hi to all,

we have to prototype a dashboard based on a Postgres DB.

The data is saved in JSON format, but unfortunately is also compressed with lz-string:

 

json_encrypted.png

Has anyone experienced this before? Is there some function to call, or should I make a python script and call it?

Best regards

 

Daniele Tiles

1 ACCEPTED SOLUTION

Hi I've solved it with Python.

View solution in original post

4 REPLIES 4
v-xicai
Community Support
Community Support

Hi @daniele_tiles ,

 

Maybe you need to decompress fist.

 

If you have Pro account you could try to open a support ticket. If you have a Pro account it is free. Go to https://support.powerbi.com. Scroll down and click "CREATE SUPPORT TICKET".

 

Best Regards,

Amy

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi I've solved it with Python.

Hi 
I would be very grateful indeed if you could share the code you used to decompress values compressed with lz-string as I need it for a business critical application

If possible, Can you please share the python code to Decrypt JSON compressed with lz-string for the column mentioned.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.