Load a Json or Yaml parser, depending on whether the content appears to be Json.
Load a Json or Yaml parser, depending on whether the content appears to be Json. We expose this publicly for testing purposes (to allow easy parsing of config subtrees) at the moment.