allow convert structure to json