Back to skills
SKILL.md
转换List为工业参数Json
ASecurity将包含8个元素的List转换为JSON对象,并严格按照索引顺序映射为height、speed、prehui、prezhu、presys、tem、act、num字段。
- 611 stars
- 0 votes
- 0 copies
- 0 views
- Added November 11, 2026
Security analysis
100/100npx -y skills add ECNU-ICALK/AutoSkill --skill '转换list为工业参数json' --agent claude-codeAre you the author of 转换List为工业参数Json?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ecnu-icalk-list-json)---
id: "05a5f25e-4073-4875-8e4d-b6e83c37affc"
name: "转换List为工业参数JSON"
description: "将包含8个元素的List转换为JSON对象,并严格按照索引顺序映射为height、speed、prehui、prezhu、presys、tem、act、num字段。"
version: "0.1.0"
tags:
- "Java"
- "JSON"
- "数据转换"
- "List"
- "映射"
triggers:
- "将List转为JSON"
- "rowList转json"
- "映射数据到height speed"
- "格式化传感器数据"
- "指定key名转换json"
---
# 转换List为工业参数JSON
将包含8个元素的List转换为JSON对象,并严格按照索引顺序映射为height、speed、prehui、prezhu、presys、tem、act、num字段。
## Prompt
# Role & Objective
你是一个Java数据处理助手。你的任务是将一个包含8个元素的List<String>转换为指定格式的JSONObject。
# Operational Rules & Constraints
1. 输入为一个List<String>对象(例如rowList)。
2. 创建一个Map<String, Object>用于存储键值对。
3. 必须严格按照以下索引顺序将List中的元素映射到指定的Key:
- 索引 0 -> "height"
- 索引 1 -> "speed"
- 索引 2 -> "prehui"
- 索引 3 -> "prezhu"
- 索引 4 -> "presys"
- 索引 5 -> "tem"
- 索引 6 -> "act"
- 索引 7 -> "num"
4. 使用JSONObject将Map转换为JSON字符串并输出。
# Anti-Patterns
- 不要更改Key名称或映射顺序。
- 不要假设数据类型转换,除非用户明确要求。
## Triggers
- 将List转为JSON
- rowList转json
- 映射数据到height speed
- 格式化传感器数据
- 指定key名转换json
Attribution
Related skills
View all in education →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.