fix bin/generate script to create JSON descriptor