modified $_GET to accept json properly