Message from JavaScript discussions

July 2018

— Wait ill send an example

— 

[Full Stack Blues: Exploring Vulnerabilities In The MEAN Stack] is good,have a look at it! https://www.upguard.com/blog/full-stack-blues-exploring-vulnerabilities-in-the-mean-stack

— Unexpected token C in JSON at position 0

— Do you know what could cause this?

— Text please

— [
["custom"],
["presets", ["minimial", "standard", "react"]],
[
"test",
[
["minimial", ["minimimal1", "minimial2"]],
["standard", ["subMenu", "subMenu2", "subMenu3", "subMenu4"]],
"react"
]
]
]

Message permanent page

— Source:

[
["custom"],
["presets", ["minimial", "standard", "react"]],
[
"test",
[
["minimial", ["minimimal1", "minimial2"]],
["standard", ["subMenu", "subMenu2", "subMenu3", "subMenu4"]],
"react"
]
]
].map(x => x)


Result:
[ [ 'custom' ],
[ 'presets', [ 'minimial', 'standard', 'react' ] ],
[ 'test', [ [Object], [Object], 'react' ] ] ]

Message permanent page

— Already works

— Its a json

— Source:

JSON.parse('[
["custom"],
["presets", ["minimial", "standard", "react"]],
[
"test",
[
["minimial", ["minimimal1", "minimial2"]],
["standard", ["subMenu", "subMenu2", "subMenu3", "subMenu4"]],
"react"
]
]
]')


Exception:
SyntaxError: Invalid or unexpected token

Message permanent page

— Oh i do not even need to parse

— Or stringify