add ruby script to gen json file