added activity-to-json utility class