Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
srp_JsonX
This 'srp_jsonX("details",column.value,'string array')' produced the following output. the column.value is a @tm delimited value.
Is this the correct expect formatted output.
Just wondering about the '\t' is that a json formatting thingy.
PLUS: If there is such a thingy, is there a formatting for BOLDstart BOLDend
Is this the correct expect formatted output.
Just wondering about the '\t' is that a json formatting thingy.
PLUS: If there is such a thingy, is there a formatting for BOLDstart BOLDend
"Separable A - Extra Media Converters \t\t\t",
"\t - 5x LC-LC SM fibre leads\t\t",
"\t - 4x Pearle SM Fibre media converters (4x Pairs of data connections with ARm220)\t\t",
"\t\t - 4x Pearle SM SFP's\t",
"",
"Separable A - Extra Media Converters \t\t\t",
"\t - 5x LC-LC SM fibre leads\t\t",
"\t - 4x Pearle SM Fibre media converters (4x Pairs of data connections with ARm220)\t\t",
"\t\t - 4x Pearle SM SFP's\t",
""
"\t - 5x LC-LC SM fibre leads\t\t",
"\t - 4x Pearle SM Fibre media converters (4x Pairs of data connections with ARm220)\t\t",
"\t\t - 4x Pearle SM SFP's\t",
"",
"Separable A - Extra Media Converters \t\t\t",
"\t - 5x LC-LC SM fibre leads\t\t",
"\t - 4x Pearle SM Fibre media converters (4x Pairs of data connections with ARm220)\t\t",
"\t\t - 4x Pearle SM SFP's\t",
""
Comments
Where can I find a list of thingys..ooops encodings
Horizontal tab wont work for me, need each to be on a new line , so will change @tm to \r\n (CRLF)
swap @tm with '\r\n' in column.value -
I will leave the original way and they can deal with it at the front (returned) end.
Thought the \t was the conversion of @tm
On a close look at the data I saw Tabs in the data and also in the json output I see an ? character.
Appears @tm is not converted as part of an array.
If I do:
swap \09\ with '' in column.value
swap @tm with @fm in column.value
I get a perfect output:
"Separable A - Extra Media Converters ",
" - 5x LC-LC SM fibre leads",
" - 4x Pearle SM Fibre media converters (4x Pairs of data connections with ARm220)",
" - 4x Pearle SM SFP's",
"",
"Separable A - Extra Media Converters ",
" - 5x LC-LC SM fibre leads",
" - 4x Pearle SM Fibre media converters (4x Pairs of data connections with ARm220)",
" - 4x Pearle SM SFP's",
""
No. Kevin was only pointing out that the \t in your JSON was the tab character. He was not suggesting that this was also the @TM delimiter.
That could be the @TM delimiter. What are you using to inspect the JSON where the "?" character appeared?
This was in this reference to the array type, but, of course I could be misreading
Either Postman or Notepad++
Ah yes, I see it did. Good to know it does work. Extra fiddling must have caused the later issue.
Thank you for your patience.