Skip to content
Discussion options

You must be logged in to vote

Check the playground: https://toontools.vercel.app/tools/json-to-toon

The toon format would be 1 if number, "1" if string.

This:

{
  "users": [
    {
      "id": "1",
      "name": "Alice",
      "role": "admin"
    },
    {
      "id": 2,
      "name": "Bob",
      "role": "user"
    }
  ]
}

Converts to this:

users[2]{id,name,role}:
  "1",Alice,admin
  2,Bob,user

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@johannschopplich
Comment options

Answer selected by johannschopplich
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants