Discussion Journal log writer fails to produce well-formed JSON object in "Interdiction" record type when player name contains special characters.

Journal log writer fails to produce well-formed JSON object in "Interdiction" record type when player name contains special characters.

When a player is being interdicted by another player and the interdicting player's name contains special characters, the generated JSON element for the record becomes malformed.

So far confirmed with names containing the character '['.

Example of a well-formed record:

Code:
{ "timestamp":"2017-01-08T17:18:23Z", "event":"Interdiction", "Success":true, "IsPlayer":true, "Interdicted":"Player Name", "CombatRank":0 }

Example of a malformed record:

Code:
{ "timestamp":"2017-01-08T17:18:23Z", "event":"Interdiction", "Success":true, "IsPlayer":true, "Interdicted":Player [Name], "CombatRank":0 }

This may be caused by improper (or lack of) escaping of the character '[', which denotes the beginning of a JSON array in the JSON language specification.
 
Last edited:
Back
Top Bottom