# `Fun_GetListJson_ByKey6` (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)` |

## Body

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

## Narrative

**Business context:** Byte-for-byte the same shape as `Fun_GetListJson_ByKey5` — hard-coded `$.sParamKey` lookup returning `""` on miss. Differs only in name; presumably a copy made for a specific caller.

**What it does:** iterates `sJson`, reads `$.sParamKey` per element, compares to `sKeyValue`; on match returns the stripped `$.sKey`. Returns `""` on no match or invalid JSON.

**Invocation:** called from `Sp_OEE_ProductionReport`.
