Has anyone written a routine that takes a Json string created by Var2Json() and formatted it with Spaces and CRLF so that it will view nicely in a text window?
I could probably write something but it may take some time.
I hope that there is some Xbase++ code that someone will share.
Json Formatter
Json Formatter
The eXpress train is coming - and it has more cars.
Re: Json Formatter
I do use JSONlint: https://www.jsonlint.com/
Best regards,
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Re: Json Formatter
Hi Roger,
You can use the free Chilkat json class.
You can use the free Chilkat json class.
Code: Select all
LOCAL lcStrJson
LOCAL loJson
LOCAL lcStrFormattedJson
lcStrJson = "... JSON to be formatted ..."
loJson = CreateObject('Chilkat_9_5_0.JsonObject')
loJson:Load(lcStrJson)
loJson:EmitCompact = 0
lcStrFormattedJson = loJson:Emit()
? lcStrFormattedJson
RELEASE loJson
Re: Json Formatter
Chilkat is just unbelievable. Great library.
Best regards,
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Re: Json Formatter
Thank you all for the recommendations.
I use Chilkat for SFTP and some other things.
Their products are very good.
I use Chilkat for SFTP and some other things.
Their products are very good.
The eXpress train is coming - and it has more cars.
Re: Json Formatter
I bought it for the same reason. Yes, good software. And very feature rich.I use Chilkat for SFTP and some other things.
Best regards,
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Re: Json Formatter
Hi,
Is the first place to look for when I need a special function, very good investment.
Sending mails and reading mailboxes is easy with it. I never have any problems to configure mailservers as Office365, Gmail, ... Works always.
Good documentation and a lot of samples for everything you need.
There is also https://tools.chilkat.io/ with some nice samples and tools. Converting a json or xml to source code can be a real time saver.
Is the first place to look for when I need a special function, very good investment.
Sending mails and reading mailboxes is easy with it. I never have any problems to configure mailservers as Office365, Gmail, ... Works always.
Good documentation and a lot of samples for everything you need.
There is also https://tools.chilkat.io/ with some nice samples and tools. Converting a json or xml to source code can be a real time saver.
Re: Json Formatter
Great Success!!
Now our Taxi Web Service activity browser is complete !!
Now our Taxi Web Service activity browser is complete !!
The eXpress train is coming - and it has more cars.
-
- Posts: 484
- Joined: Wed Jan 27, 2010 10:25 pm
- Location: Berlin Germany
Re: Json Formatter
As always, no download of pictures or zip files possible




_______________________
Best Regards
Wolfgang
Best Regards
Wolfgang
Re: Json Formatter
I edited and attached it again.
When this big project of mine winds down, I hope to find time to update the PhpBB software with hopes that it will fix that problem.
When this big project of mine winds down, I hope to find time to update the PhpBB software with hopes that it will fix that problem.
The eXpress train is coming - and it has more cars.