You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何从指定JSON Schema的properties中随机选取一组键值对生成新Schema

Generate New JSON Schema with Random Single Property Pair

Sure thing! Let's put together the JSON Schema you need. I randomly selected one key-value pair from the original properties (I went with dog: "woof" here—feel free to swap in any other pair from the original set if you want a different random pick):

{
  "title": "animals object",
  "type": "object",
  "properties": {
    "dog": "woof"
  }
}

Quick Breakdown:

  • I kept the original title and type properties exactly as they appeared in your initial schema.
  • If you'd prefer a different random pair, just replace the dog: "woof" line with any entry from the original list—like cat: "meow", cow: "moo", sheep: "baaah", or bird: "tweet"—while keeping the rest of the structure identical.

内容的提问来源于stack exchange,提问作者shubhamal8585

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.26 09:42:54