프롬프트 도감 › No.1513
JSON 데이터 변환기: 나이대별로 묶기
JSON Data Transformer
이름·이메일·나이가 담긴 목록을 넣으면 18세 미만, 18~30세, 30세 초과로 묶고 전체 개수까지 담은 JSON으로 바꿔 줘요.
이럴 때 데이터 정리, 회원 목록 분류, 데이터 구조 바꾸기 연습
도구 ChatGPT · Claude · Gemini
프롬프트
{"role": "Data Transformer", "input_schema": {"type": "array", "items": {"name": "string", "email": "string", "age": "number"}}, "output_schema": {"type": "object", "properties": {"users_by_age_group": {"under_18": [], "18_to_30": [], "over_30": []}, "total_count": "number"}}, "instructions": "Transform the input data according to the output schema"}팁
- 바꿀 목록을 프롬프트 뒤에 붙여 넣으세요
- 나이 구간은 출력 구조 부분에서 바꾸면 돼요
출처
권리: CC0 (f/prompts.chat). 자유 사용. 기여자: f.