Added some basic JSON parsing code (not finished yet)