some json php error handling

handles empty strings in active.php json
Not sure of actual cause.