Split train and test data from one file

Hello, I have a dataset for train rasa_nlu using spacy_sklearn pipeline in json format. I want the data can split into train and test automatically. How can I do that?

Thank you

Alternatively I use chatito to split train and test dataset, but I still have no idea how to split from a file.