Added hook method for adding custom data to the produced JSON map.