updated online status to use json