Create JSON from input

Options
brian
brian Administrator

ADMIN

edited December 2022 in ✂️ Snippets

This snippet converts an input into a JSON object with nested arrays.

It features:

  • GET /to_json_person: an API that accepts an input for parameters, then creates a JSON object [people] with those parameters.

You can use this snippet to learn how to:

  • Create a nested array of keys
  • Build a JSON key value pair object
  • Nest that JSON object in an array
  • How to use Stop & Debug to progressively work through designing a complex function

Feel free to add suggestions, requests, or questions in the comments!

Tagged: