Convert json0 type from Coffeescript to JavaScript