If I want to write a collection, in which function should I insert the texts so that it is passed as a collection?

If I want to write a collection, in which function should I insert the texts so that it is passed as a collection?
Because when I write it manually, like this: {
“name”: “David”,
“age”: 30
}
It is passed as text and not as an object

I know I can use the parseJSON module
but I prefer to use the function.
Thanks a lot.

1 Like

You will have to use a Parse JSON module if you want to convert JSON into variables.

Hope this helps! Let me know if there are any further questions or issues.

@samliew