created rs to json converter