You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-2Lines changed: 13 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ Use the Table of Contents to practice and test your knowledge. It doesn't show t
26
26
- What is a protocol? How do you define your own protocol?
27
27
- What is waterfall methodology and Agile methodology? What are the differences between them?
28
28
- What is the difference between a class and an object?
29
-
- What is JSON?
29
+
- What is JSON? What are the pros and cons?
30
30
- What is the difference between not-running, inactive, active, background and suspended execution states?
31
31
- Is it faster to iterate through an NSArray or an NSSet?
32
32
- What is KVO?
@@ -160,10 +160,21 @@ List of differences:
160
160
161
161
In the simplest sense, a class is a blueprint for an object. It describes the properties and behaviors common to any particular type of object. An object, on the other hand, is an instance of a class.
162
162
163
-
#### What is JSON?
163
+
#### What is JSON? What are the pros and cons?
164
164
165
165
JSON stands for JavaScript Object Notation. According to [wiki](https://en.wikipedia.org/wiki/JSON), it is a file format that uses human-readable text to transmite data objects consisting of attribute-value pairs and array data types.
166
166
167
+
Pros:
168
+
169
+
- It is lighter than XML meaning that it can represent the same data in XML in fewer bytes. This makes network transmissions and read/writes faster
170
+
- Since it is native to JavaScript, computationally-expensive XSL tranformations are not needed in order to extract data
171
+
172
+
Cons:
173
+
174
+
- Not as widespread as XML
175
+
- Data is not readily streamable and has to be broken up into individual objects
176
+
- Can't use comments
177
+
167
178
#### What is the difference between not-running, inactive, active, background and suspended execution states?**
168
179
169
180
- Not-running occurs when the app either has not be launched or was running but was terminated by the system.
0 commit comments