Topic: DMD0480 JSON Pretty Print |
|
Because JSON data is often output without line breaks to save space, it can be difficult for humans to read and make sense of it. JSON Pretty Print helps to solve this by formatting the JSON data so that it is easy to read and debug by human beings. If JSON Pretty Print was launched from the instruction-specific tools selection (the wrench icon) the string structure or the Numeric Data Block field will already be filled in, so all that's required is to click the Refresh button to process the Raw JSON String and display the Pretty-printed JSON text.
|
|
Select the data source that contains the raw JSON text:
Click Refresh to process the Raw JSON text and display the Pretty-printed JSON text. After hitting the Refresh button, the Status Window (below the Raw JSON String pane) will contain any parsing errors of the Raw JSON String, like a missing end bracket or an invalid character.
Enable Show color-coded nesting to have each nested level of text appear in a different background color.
Click Copy to Clipboard to place a copy of the pretty-printed text into the Windows clipboard so that it can be pasted into a separate application.
|
|
See Also:HTTPCMD - HTTP Request / Response with Server
|
|
Related Topics:Ladder Views -> Popup Instruction-specific Tools
|
|