Added JSON export

This is a simple JSON export. Basically it unpacks the attributes so these can be easily  processed.