Just upload those libraries as additional Web Resources. On the customizations for the form, you can choose which libraries get loaded on the form. Just make sure your JSON and jQuery libraries are loaded before your custom code, and you should be fine.