import json

def lambda_handler(event, context):

	f = open('./seiyu.json')
	jsondata = json.load(f)
	f.close()

	charas = ""

	if (event.get("queryStringParameters") is not None \
		and event["queryStringParameters"].get('title') is not None):
		title = event["queryStringParameters"]['title']

		if (title == 'houshin'):
			charas = jsondata["houshin"]
			for i, chara in enumerate(charas):
				voice_strip = chara["voice"].replace(" ", "").replace("　", "")
				charas[i]['url'] = "https://ja.wikipedia.org/wiki/" + voice_strip

	else:
		title = 'non title'

	return {
        "statusCode": 200,
        "body": json.dumps({
            'title': title,
            'data': charas
        }, ensure_ascii=False)
	}

1728e3ba7be504ddc32790afecf9c8242df89d50
<mask token>

<mask token>


def lambda_handler(event, context):
    f = open('./seiyu.json')
    jsondata = json.load(f)
    f.close()
    charas = ''
    if event.get('queryStringParameters') is not None and event[
        'queryStringParameters'].get('title') is not None:
        title = event['queryStringParameters']['title']
        if title == 'houshin':
            charas = jsondata['houshin']
            for i, chara in enumerate(charas):
                voice_strip = chara['voice'].replace(' ', '').replace('\u3000',
                    '')
                charas[i]['url'
                    ] = 'https://ja.wikipedia.org/wiki/' + voice_strip
    else:
        title = 'non title'
    return {'statusCode': 200, 'body': json.dumps({'title': title, 'data':
        charas}, ensure_ascii=False)}

import json


def lambda_handler(event, context):
    f = open('./seiyu.json')
    jsondata = json.load(f)
    f.close()
    charas = ''
    if event.get('queryStringParameters') is not None and event[
        'queryStringParameters'].get('title') is not None:
        title = event['queryStringParameters']['title']
        if title == 'houshin':
            charas = jsondata['houshin']
            for i, chara in enumerate(charas):
                voice_strip = chara['voice'].replace(' ', '').replace('\u3000',
                    '')
                charas[i]['url'
                    ] = 'https://ja.wikipedia.org/wiki/' + voice_strip
    else:
        title = 'non title'
    return {'statusCode': 200, 'body': json.dumps({'title': title, 'data':
        charas}, ensure_ascii=False)}

import json

def lambda_handler(event, context):

	f = open('./seiyu.json')
	jsondata = json.load(f)
	f.close()

	charas = ""

	if (event.get("queryStringParameters") is not None \
		and event["queryStringParameters"].get('title') is not None):
		title = event["queryStringParameters"]['title']

		if (title == 'houshin'):
			charas = jsondata["houshin"]
			for i, chara in enumerate(charas):
				voice_strip = chara["voice"].replace(" ", "").replace("　", "")
				charas[i]['url'] = "https://ja.wikipedia.org/wiki/" + voice_strip

	else:
		title = 'non title'

	return {
        "statusCode": 200,
        "body": json.dumps({
            'title': title,
            'data': charas
        }, ensure_ascii=False)
	}
