fixed json module loading
added a wrapper around the parser to make things easier