almost done with addlocation class. json parser

gets error when running app after adding location. I think it's because
the php script isn't set up yet