class_docstr: Geocoder using the Baidu Maps v2 API.
  
  Documentation at:
      http://lbsyun.baidu.com/index.php?title=webapi/guide/webservice-geocoding
  
  .. attention::
      Newly registered API keys will not work with v2 API,
      use :class:`.BaiduV3` instead.
class_docstr_tok: ["Geocoder","using","the","Baidu","Maps","v2","API",".","Documentation","at",":","http",":","\/\/lbsyun.baidu.com\/index.php","?","title=webapi\/guide\/webservice-geocoding","..","attention",":",":","Newly","registered","API","keys","will","not","work","with","v2","API",",","use",":","class",":","`",".BaiduV3","`","instead","."]
docstr: Returns location, (latitude, longitude) from JSON feed.
docstr_tok: ["Returns","location",",","(","latitude",",","longitude",")","from","JSON","feed","."]
code: def _parse_json(self, page, exactly_one=True):
      """
      Returns location, (latitude, longitude) from JSON feed.
      """
  
      place = page.get("result")
  
      if not place:
          self._check_status(page.get("status"))
          return None
  
      def parse_place(place):
          """
          Get the location, lat, lng from a single JSON place.
          """
          location = place.get("level")
          latitude = place["location"]["lat"]
          longitude = place["location"]["lng"]
          return Location(location, (latitude, longitude), place)
  
      if exactly_one:
          return parse_place(place)
      else:
          return [parse_place(item) for item in place]
  
file_path: geopy/geopy/geocoders/baidu.py
imports: import hashlib
  from functools import partial
  from urllib.parse import quote_plus, urlencode
  from geopy.exc import GeocoderAuthenticationFailure, GeocoderQueryError, GeocoderQuotaExceeded, GeocoderServiceError
  from geopy.geocoders.base import DEFAULT_SENTINEL, Geocoder
  from geopy.location import Location
  from geopy.util import logger
label_desc: Use image node_id 6 for calling the Baidu obj's underlying member method code with example usage: obj._parse_json(page, exactly_one) and returns: None, Location, parse_place, unknown