JSON_Instance Flashcards

1
Q

How to initialize?

A

var myJSON = new JSON_Instance()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Inserting OLD but validated JSON

A

myJSON.insertJSON(str)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Adding 2d Array

A
myJSON.addToObj(<2dArray>)
//eg [['name', 'sam'], ['age', '22'], ['job', 'student']]
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Remove Item in innerArray by Index

A

myJSON.removeByIndex(indexToRemember)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Save to Local Storage

A

myJSON.saveToLocalStorage(name)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Get from Local Storage

A

myJSON.getFromLocalStorage(name, insertToJSON) - if 2nd param is True - JSON is parsed back into Class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Print to Console

A

myJSON.print()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Return a JSON String - obj as String

A

myJSON.stringMe()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Parse the JSON String - string becomes obj

A

myJSON.parseMe()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

CDN Link

A

https://cdn.jsdelivr.net/gh/pixman92/

JSON_Instance@0.0.3/JSON_Instance.js

How well did you know this?
1
Not at all
2
3
4
5
Perfectly