Php to JSON test for PhoneGap