Altering the sets a little bit so you can choose between json and XML.