What format do I use for the URI in the JSON Studio login page?

JSON Studio allows you to login using one of two ways:
1. By putting in a username, password, hostname, port etc
2. Using a mongodb URI plus a username/password

The second option is only supported in version 5.5.0 and up and is the preferred option since it allows you a wide varierty of connection types including connections to replica sets, using SSL and more. The URI has a placeholder for the username and password (entered in the appropriate fields) but otherwise follow the MongoDB URI format. Example include:

mongodb://${username}:${password}@atlas-3.weblogs.9741.mongodbdns.com:27017/admin?ssl=true

mongodb://${username}:${password}@atlas-3.weblogs.9741.mongodbdns.com:27000,atlas-4.weblogs.9741.mongodbdns.com:27000,atlas-5.weblogs.9741.mongodbdns.com:27000/admin?replicaSet=jsonar_0

etc.

Posted in: Support