fixed the json bugs and added some functions to get userID and orderID