to check if json works with phonegap