Rollback code JSON PHP code