code: function(schemaName, target) {
    var schema  = SCHEMA[schemaName]._schema_
  
    if (!schema) {
      console.error("doesn't found schema", schemaName)
      return
    }
  
    for (var key in target) {
      var rule  = schema[key]
        , value = target[key]
        , type  = typeof value
  
      if (rule.indexOf('int')) {
        target[key] = parseInt(value) || 0
      }
  
      else if ((rule.indexOf('array') > -1 || rule.indexOf('json') > -1) && type == 'string') {
        try {
          target[key] = JSON.parse(value || '{}')
        } catch (e) {
          console.error(schemaName, target, e)
          return
        }
      }
    }
  
    return target
  }
docs: /*
  formatter