def instagram_profile_json(username):
scripts = instagram_profile_js(username)<EOL>source = None<EOL>if scripts:<EOL><INDENT>for script in scripts:<EOL><INDENT>if script.text:<EOL><INDENT>if script.text[<NUM_LIT:0>:SCRIPT_JSON_PREFIX] == "<STR_LIT>":<EOL><INDENT>source = script.text[SCRIPT_JSON_DATA_INDEX:-<NUM_LIT:1>]<EOL><DEDENT><DEDENT><DEDENT><DEDENT>return source<EOL>
Get the JSON data string from the scripts.
:param username:
:return: