Class JsonExtrasBridge

java.lang.Object
cloud.opencode.base.flow.internal.JsonExtrasBridge

public final class JsonExtrasBridge extends Object
Cross-package bridge into the package-private JsonExtras helper, so the operation/ package can serialise extra_json payloads without exposing the underlying helper type. 跨包桥接到包私有 JsonExtras,让 operation/ 包能序列化 extra_json。
Since:
JDK 25, opencode-base-flow V1.0.5
Author:
Leon Soo
  • Method Details

    • toJson

      public static String toJson(Map<String,Object> payload)
      Serialise an extras map. 序列化 extras Map。
      Parameters:
      payload - payload map — 待序列化 Map
      Returns:
      JSON string — JSON 字符串
      Since:
      JDK 25, opencode-base-flow V1.0.5