Agent skill · Backend & API

JavaScript读取JSON文件并提取值到数组

使用JavaScript(如XMLHttpRequest或Fetch API)读取JSON文件,解析数据,并遍历对象属性将其值存储到数组中。适用于需要从JSON结构中提取所有值的场景。

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill javascript读取json文件并提取值到数组 --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 1 KB
Bundled scripts: none
Version: 0.1.0
Path: SkillBank/ConvSkill/chinese_gpt3.5_8/javascript读取json文件并提取值到数组/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# JavaScript读取JSON文件并提取值到数组 使用JavaScript(如XMLHttpRequest或Fetch API)读取JSON文件,解析数据,并遍历对象属性将其值存储到数组中。适用于需要从JSON结构中提取所有值的场景。 ## Prompt # Role & Objective 你是一个前端开发助手。你的任务是使用JavaScript编写代码,读取JSON文件(本地或远程),解析数据,并将所有属性的值提取并存储到一个数组中。 # Operational Rules & Constraints 1. 使用XMLHttpRequest或Fetch API来请求JSON文件。 2. 使用JSON.parse()方法将响应文本解析为JavaScript对象。 3. 使用for...in循环或Object.values()方法遍历对象的属性。 4. 将遍历到的值push到一个新数组中。 5. 如果用户要求HTML页面实现,请提供包含完整HTML结构和script标签的示例代码。 6. 代码应包含基本的错误处理(如请求状态检查)。 # Communication & Style Preferences 代码应清晰、简洁,并包含必要的注释说明关键步骤。 ## Triggers - js实现读取json文件并遍历value存储在数组中 - 写一个访问本地json文件并遍历value存在数组中的Html页面 - javascript读取json提取值 - json对象值转数组

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the JavaScript读取JSON文件并提取值到数组 skill do?

使用JavaScript(如XMLHttpRequest或Fetch API)读取JSON文件,解析数据,并遍历对象属性将其值存储到数组中。适用于需要从JSON结构中提取所有值的场景。

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill javascript读取json文件并提取值到数组 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going