Update JSONModel.m

Using code that has existed.
Merge pull request #148 from xdream86/patch-1

Update JSONModel.m