Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialPaul Harding
18,822 PointsThis question is bad!!! The correct answer collection of key-value pairs and ordered list of values doesn't work.
Anyone get something to work on this question?
8 Answers
Kieran Robinson
9,411 Pointsthe four answers I chose were
1) Fill in the blanks below A) JSON can be represented by two types of structures - ARRAYS and DICTIONARIES
2) What are some of the advantages of JSON? A) All of the above
3) In the code snippet below, can you indicate what type of method dataWithContentsOfURL() is? var someData = NSData.dataWithContentsOfURL(someURL, options: nil, error: nil) A) Class method
4) What does JSON stand for? A) JavaScript Object Notation
Hope this helps Paul Harding
Dan Merfeld
373 PointsThis is a horrible question for an online quiz. The wikipedia page for JSON reads:
"JSON is built on two structures:
A collection of name/value pairs. In various languages, this is realized as an object, record, struct, dictionary, hash table, keyed list, or associative array.
An ordered list of values. In most languages, this is realized as an array, vector, list, or sequence."
But those answers are not recognized.
Other acceptable answers could be "array" and "object"
The word "dictionary", is used as an example of a possible type in a particular language. ObjectiveC and Swift have Dictionaries, but, other languages have hash tables, or keyed lists.
I would suggest making this a multiple-choice question because of the wide array of possible answers a person could provide.
ben10
5,289 PointsI would have put key-value, and ordered list as the most likely answers. This questions needs some serious re-working.
alexandroslykesas
1,541 Pointsindeed u bumped into this question as well.. i thought its "object" and "array" as well
biagiomessina
8,106 PointsOddly, "dictionaries" followed by "arrays" didn't work, but "arrays" followed by "dictionaries" did.
Humberto Gaona
Courses Plus Student 2,215 Pointshorrible question, needs fixing
alipayne
1,902 PointsI cant say its a bad question but key pairs and dictionaries are the answer I heard in the video personally. I could under stand how one could rationalize a key pair to get array with some background knowledge but still its probably best to change the question or add to teacher notes an example of key paired array
YI FENG XIE
2,274 Pointsbad question +1
the answer what i think actually is key/value
Paul Harding
18,822 PointsPaul Harding
18,822 PointsThanks.
Mr. Valdemar
Courses Plus Student 13,620 PointsMr. Valdemar
Courses Plus Student 13,620 PointsThanks.