'Read a small random sample from a big JSON file into a Python data frame

I have an Amazon Dataset which consists of 30 million data. I found a way to do it in CSV format that you can see on this question but theres no mention how to do it in JSON format. I've read the pd.read_json documentation and it doesn't give a clue about my problem. Also, I've found that you can assign chunksize as the limitation in the pd.read_json but that doesn't solve the randomized part.

Is there any way to do it?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source