actually solve it using json :D