How do you convert xml to json (ideally without dependencies)