fixed erroneos ',' at end of JSON array and escaped all "\" in id and string
Merge pull request #3 from manxam/master

fixed erroneos ',' at end of JSON array and escaped all "\"