Replaced json-generator code by gem