Added optional mapping using additional json file

Optionally add a fourth argument which is the file path of a json file
that will map values. This is useful for generating code in multiple
languages with different names for data types.