Our JSON example cannot compile using Xcode 6
fixed small typos
Merge pull request #590 from realm/kg-buildsh-xcode6-and-json-example

Our JSON example cannot compile using Xcode 6