/** * ロケーションコードデータを JSONに変換して提供します。 * * @return string JSON形式のロケーションデータ */ public static function getJSON() { if (self::$locationCodeAsJson == null) { self::$locationCodeAsJson = "[" . self::xmlToJSON(self::getRegions()) . "]"; } return self::$locationCodeAsJson; }