Convert Specific Data from Pdf to json format

Hello Community,
Am trying to extract specific data from pdf and then convert to json format. Any ways I can do this So far I have managed to read the data to text file and use regex to get the specific data, however am stuck since i cant get the correct output and also am having trouble convert to
Here is a sample of text file
Studentdetails.txt (1.5 KB)

Am not supposed to get where amount is $0.00
And this is the sample of desired json output
JsonFile.txt (757 Bytes)

Hey Guys, anyone that can help?