airplayx / gormat

☄ The golang convenient converter supports Database to Struct, SQL to Struct, and JSON to Struct.
MIT License
311 stars 35 forks source link

json转换不了 #2

Closed lhlyu closed 4 years ago

lhlyu commented 4 years ago
[
  {
    "input_index": 0,
    "candidate_index": 0,
    "delivery_line_1": "1 N Rosedale St",
    "last_line": "Baltimore MD 21229-3737",
    "delivery_point_barcode": "212293737013",
    "components": {
      "primary_number": "1",
      "street_predirection": "N",
      "street_name": "Rosedale",
      "street_suffix": "St",
      "city_name": "Baltimore",
      "state_abbreviation": "MD",
      "zipcode": "21229",
      "plus4_code": "3737",
      "delivery_point": "01",
      "delivery_point_check_digit": "3"
    },
    "metadata": {
      "record_type": "S",
      "zip_type": "Standard",
      "county_fips": "24510",
      "county_name": "Baltimore City",
      "carrier_route": "C047",
      "congressional_district": "07",
      "rdi": "Residential",
      "elot_sequence": "0059",
      "elot_sort": "A",
      "latitude": 39.28602,
      "longitude": -76.6689,
      "precision": "Zip9",
      "time_zone": "Eastern",
      "utc_offset": -5,
      "dst": true
    },
    "analysis": {
      "dpv_match_code": "Y",
      "dpv_footnotes": "AABB",
      "dpv_cmra": "N",
      "dpv_vacant": "N",
      "active": "Y"
    }
  },
  {
    "input_index": 0,
    "candidate_index": 1,
    "delivery_line_1": "1 S Rosedale St",
    "last_line": "Baltimore MD 21229-3739",
    "delivery_point_barcode": "212293739011",
    "components": {
      "primary_number": "1",
      "street_predirection": "S",
      "street_name": "Rosedale",
      "street_suffix": "St",
      "city_name": "Baltimore",
      "state_abbreviation": "MD",
      "zipcode": "21229",
      "plus4_code": "3739",
      "delivery_point": "01",
      "delivery_point_check_digit": "1"
    },
    "metadata": {
      "record_type": "S",
      "zip_type": "Standard",
      "county_fips": "24510",
      "county_name": "Baltimore City",
      "carrier_route": "C047",
      "congressional_district": "07",
      "rdi": "Residential",
      "elot_sequence": "0064",
      "elot_sort": "A",
      "latitude": 39.2858,
      "longitude": -76.66889,
      "precision": "Zip9",
      "time_zone": "Eastern",
      "utc_offset": -5,
      "dst": true
    },
    "analysis": {
      "dpv_match_code": "Y",
      "dpv_footnotes": "AABB",
      "dpv_cmra": "N",
      "dpv_vacant": "N",
      "active": "Y"
    }
  }
]

参考

airplayx commented 4 years ago

🍦 感谢反馈,这个问题已被修正并在测试中通过,你可以拉取最新的代码,或者等待release的发布。