Leverage jsonPath in code outside scnarios

Refer http://stackoverflow.com/questions/36441740/extract-value-from-json-and-use-in-another-exec
I basically want to construct an URL that I will use in my scenarios, The URL can only be constructed by making an API call. Is there an option at all. It looks like you just need to use scalajava’s http libraries to do those calls.

You can’t use Gatling DSL outside the load test itself. Use AsyncHttpClient, which is our underlying Java HTTP client.