Compiler
JS
JS JSON
Run
<!DOCTYPE html> <html> <body> <h1>Parse Nested JSON Data</h1> <script> var emp = `{ "employees": { "name": "Erin Barnes", "age": 26, "lang": ["HTML", "CSS", "JavaScript"], "exp": { "CompanyName1": "2 year", "CompanyName2": "1 Year" } } }`; var result = JSON.parse(emp); document.write(result["employees"]["name"] + "<br>" ); document.write(result["employees"]["age"] + "<br>" ); document.write(result["employees"]["lang"][2] + "<br>"); document.write(result["employees"]["exp"]["CompanyName1"]); </script> </body> </html>
Editor Commands
Commands
Shortcut Key (Win)
Shortcut Key (Mac)
selectAll
Ctrl-A
Cmd-A
singleSelection
Esc
-
killLine
-
Ctrl-K (Mac)
deleteLine
Ctrl-D
Cmd-D
undo
Ctrl-Z
Cmd-Z
redo
Ctrl-Y
Shift-Cmd-Z, Cmd-Y
undoSelection
Ctrl-U
Cmd-U
redoSelection
Alt-U
Shift-Cmd-U
goDocStart
Ctrl-Home
Cmd-Up, Cmd-Home
goDocEnd
Ctrl-End
Cmd-End, Cmd-Down
goLineStart
Alt-Left
Ctrl-A
goLineEnd
Alt-Right
Ctrl-E
goLineRight
-
Cmd-Right
goLineLeft
-
Cmd-Left
goLineUp
Up
Ctrl-P
goLineDown
Down
Ctrl-N
goPageUp
PageUp
Shift-Ctrl-V
goPageDown
PageDown
Ctrl-V
newlineAndIndent
Enter
-
save
Ctrl-S
Cmd-S