use json structs in place of raw strings