FPJson: wish for option foSkipWhiteSpaceOnlyLeading
Original Reporter info from Mantis: Alextp
-
Reporter name: CudaText man
Original Reporter info from Mantis: Alextp
- Reporter name: CudaText man
Description:
FPJson has this type
TFormatOption = (foSingleLineArray, // Array without CR/LF : all on one line
foSingleLineObject, // Object without CR/LF : all on one line
foDoNotQuoteMembers, // Do not quote object member names.
foUseTabchar, // Use tab characters instead of spaces.
foSkipWhiteSpace); // Do not use whitespace at all
I want to write JSON with separator like this:
"test": "value",
but code is
If SkipWhiteSpace then
NSep:=':'
else
NSep:=' : ';
so it cannot give ': ' separator.
Wish: add option foSkipWhiteSpaceOnlyLeading, which makes this:
If SkipWhiteSpace then
begin
if SkipWhiteSpaceOnlyLeading then
NSep:= ': '
else
NSep:=':'
end
else
NSep:=' : ';
Mantis conversion info:
- Mantis ID: 34451
- Version: 3.0.4
- Fixed in version: 3.3.1
- Fixed in revision: 40055 (#35d4a644)
- Target version: 3.2.0