Modified get-order-data and core order decoding functions to use json strings