Fixed JSON mapping file parsing bugs.