Added functions for generating rpm json.