The config service accepts in strings instead of json strings, however this causes the normal control flow to throw a json parsing exception. Since this happens so frequently it is using a measurable amount of CPU time, so avoid it in the common case by testing if the string is json first