# `get_config_data_JSON` (function)


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

## Parameters

| # | Mode | Name | Type |
|---|---|---|---|
| 1 | IN | `sUserId` | `varchar(100)` |
| 2 | IN | `sConfigSlaveId` | `varchar(100)` |

## Body

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

## Narrative

**Business context:** Sibling of `get_config_data` — returns the whole language-matched dropdown JSON instead of a single key's value. **Hard-codes `iIncrement = 1509089`** so the `sConfigSlaveId` parameter is ignored entirely.

**What it does:** Reads `sftlogininfo.sLanguage` for `sUserId` (default `'sChinese'`), then returns the corresponding `sChineseDropDown` / `sBig5DropDown` / `sEnglishDropDown` of `gdsconfigformslave` row `iIncrement = 1509089`. The expected per-key JSON_EXTRACT is commented out, so the raw JSON is returned.

**Invocation:** Status: appears orphaned. No form-master, gdsmodule, other-routine, or xly-src caller. Candidate for maintainer audit — the hardcoded `iIncrement` literal and unused `sConfigSlaveId` parameter strongly suggest this is debug scaffolding.
