Study AI Mastery

Master AI. Shape Your Future. Learn to leverage ChatGPT, Claude AI, and the world's most powerful AI platforms—from complete beginner to expert level.

Platform

  • Start Here
  • New to AI? Start Here
  • For Parents & Educators
  • For Students
  • For Schools
  • Learning Paths
  • Platform Comparison
  • Free Resources
  • Pricing
  • Developer API
  • Alternatives
  • Best AI for…

Company

  • About Us
  • Contact
  • FAQ
  • What's New
  • Privacy Policy
  • Terms of Service
  • Refunds

© 2026 Study AI Mastery. All rights reserved.

Study AI Mastery is operated by Our Rose LLC. Charges appear on your card statement as OUR ROSE LLC.

API Response Parser

Write JavaScript code to parse and transform an API response.

beginner
25 points
coding

Instructions

Write a JavaScript function called `parseUsers` that takes an API response object with a `data` array of user objects (each with `id`, `first_name`, `last_name`, `email`, `status`) and returns an array of only active users, with `full_name` combining first and last name.

Sample input

Your parseUsers function is called with this input, and its result is checked against the goal below.

{"data":[{"id":1,"first_name":"John","last_name":"Doe","email":"john@test.com","status":"active"},{"id":2,"first_name":"Jane","last_name":"Smith","email":"jane@test.com","status":"inactive"}]}

Goal: [{"id":1,"full_name":"John Doe","email":"john@test.com"}]

Hints

AI-Powered Hints

Smart

Get personalized hints based on your current progress. Start with gentle hints and progress to more detailed ones.

Tags

javascript
api
data-transformation

Access Level

FREE