function setCDN(root) {
  CDN_ROOT = root.endsWith("/") ? root : root + "/";
}
Parses the given text and returns the object the JSON content represents. On invalid input, the parser tries to be as fault tolerant as possible, but still return a result.
Therefore, always check the errors list to find out if the input was valid.