added passing json function by AirDrop