nothing really fancy.
known issues :
- remove last line return if it's an empty line
- check if it's the last element of the object instead of always adding the comma, (I don't care, it fit my coding style)
- fix indent while were at it
- handle multiline stuff