# `Fun_GetListJson_ByKeyNew` (function)


- **Type:** FUNCTION
- **Returns:** `longtext`
- **Deterministic:** NO
- **SQL data access:** CONTAINS SQL

## Parameters

| # | Mode | Name | Type |
|---|---|---|---|
| 1 | IN | `sJson` | `longtext` |
| 2 | IN | `sKey` | `varchar(100)` |
| 3 | IN | `sKeyValue` | `varchar(100)` |
| 4 | IN | `sGetKey` | `varchar(100)` |

## Body

_Body is not pre-cached. To inspect: `mysql --defaults-file=~/.my.cnf -e 'SHOW CREATE FUNCTION `Fun_GetListJson_ByKeyNew`'`._

## Narrative

**Business context:** "New" variant of `Fun_GetListJson_ByKey` — accepts the lookup column as a parameter `sKey` (rather than hard-coding `$.sParamKey`) and on match returns the value at `$.sGetKey`. Effectively a duplicate of `Fun_GetListJson_ByKey`; likely created during a refactor and never adopted by callers.

**What it does:** iterates `sJson`, extracts `$.sKey` per element, compares to `sKeyValue`; on match returns the stripped `$.sGetKey`. Returns `"未解析到Key"` on no match or invalid JSON.

**Invocation:** Status: appears orphaned. No caller found in any channel (form-master sSqlStr, gdsmodule hooks, other routines, exhaustive xly-src grep, dynamic-dispatch search) — candidate for maintainer audit.
