( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ
<?php
include("include.php");
$characters = json_decode($json,true);
$count =0;
foreach ($characters as $row) {
$count++;
if($count < 50000)
{
$layerType = $row['Name'] ;
$layerType= explode(PHP_EOL, $layerType);
$LayerX = $layerType[0];
if(strpos($LayerX, '@') !== false){
$LayerX= explode("@", $LayerX);
$LayerX = $LayerX[0];
$Name = $LayerX;
$Email = $row['Email'] ;
$Jobs = $row['Jobs'] ;
$Properties = $row['Properties'] ;
$Auto = $row['Auto'] ;
$Registered = $row['Registered'] ;
$LastLogin = $row['Last Login'] ;
$LoginTimes = $row['Login Times'] ;
$newJson .='{
"Name": "'.$Name.'",
"Email": "'.$Email.'",
"Jobs": '.$Jobs.',
"Properties": '.$Properties.',
"Auto": '.$Auto.',
"Registered": "'.$Registered.'",
"Last Login": "'.$LastLogin.'",
"Login Times": '.$LoginTimes.'
},';
}
else
{
$Name = $LayerX;
$Email = $row['Email'] ;
$Jobs = $row['Jobs'] ;
$Properties = $row['Properties'] ;
$Auto = $row['Auto'] ;
$Registered = $row['Registered'] ;
$LastLogin = $row['Last Login'] ;
$LoginTimes = $row['Login Times'] ;
$newJson .='{
"Name": "'.$Name.'",
"Email": "'.$Email.'",
"Jobs": '.$Jobs.',
"Properties": '.$Properties.',
"Auto": '.$Auto.',
"Registered": "'.$Registered.'",
"Last Login": "'.$LastLogin.'",
"Login Times": '.$LoginTimes.'
},';
}
echo $json = "[".rtrim($newJson, ',')."]";
}
}
?>