Update the json parser

I improved the parsing from the json file and also made a better registering file