MCPcopy Create free account
hub / github.com/aurora-develop/aurora / parseObject

Function parseObject

internal/toolcall/parser.go:243–249  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

241}
242
243func parseObject(s string) (map[string]any, error) {
244 var v map[string]any
245 if err := json.Unmarshal([]byte(s), &v); err != nil {
246 return nil, err
247 }
248 return v, nil
249}
250
251// firstBalancedObject 返回与首个 { 配对的 } 索引;解析失败返回 -1。
252// 处理引号和反斜杠转义。

Callers 1

robustJSONFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected