Reworked ruby json exporter