fixes concurrency issue due to shared instance variable for JsonGenerator #955
Merge pull request #957 from jexp/955

Eyeballed this, seems sane.