Class SyncJson

java.lang.Object
com.axelor.ai.provider.sync.SyncJson

public final class SyncJson extends Object
JSON plumbing shared by the adapters, with failures phrased for an administrator rather than a log.

The array key differs per vendor — data for the OpenAI-shaped APIs, models for Ollama and Gemini — so callers name it.

  • Method Details

    • tree

      public static com.fasterxml.jackson.databind.JsonNode tree(String body)
    • array

      public static com.fasterxml.jackson.databind.JsonNode array(com.fasterxml.jackson.databind.JsonNode root, String key)
      The named array, or a clear refusal naming the key we expected.