You are here: PSPad forum > English discussion forum > Code Explorer for JSON !
Posted by: pythonui | Date: 2015-09-22 05:03 | IP: IP Logged
Hello,
Is there any possibility to build code explorer for JSON files?
Example:
Quote:{
"sortOrder": 77,
"data": {
"sortOrder": 77,
"panoramaCount": 0,
"webURL": null,
"userName": "",
"publishedDate": null,
"attractionLatitude": 18786961400000000,
"attractionLongitude": 98987115100000000,
"attractionStreetAddress": "Th Phra Pokklao",
"attractionCity": "Chiang Mai",
"attractionState": "",
"showPhotos": false
},
"searchType": "ATTRACTION"
}
This would be something like XML code explorer !
Thanks
Edited 2 time(s). Last edit at 2015-09-22 05:05 by pythonui.
Posted by: pspad | Date: 2015-09-22 05:36 | IP: IP Logged
Can you send me some JSON sample and description hot does content of the Code explorer for JSON looks like?
I can't imagine it, cause there are no node names and display whole content in the explorer has no sense for me.
Posted by: pythonui | Date: 2015-09-22 05:45 | IP: IP Logged
{
"data": {
"userName": "",
"panoramaCount": 0,
"publishedDate": null,
"webURL": null,
"attractionCity": "Chiang Mai",
"showPhotos": false,
"attractionStreetAddress": "Th Phra Pokklao",
"sortOrder": 77,
"attractionState": "",
"attractionLatitude": 18786961400000000,
"attractionLongitude": 98987115100000000
},
"sortOrder": 77,
"searchType": "ATTRACTION"
}
Nodes : data ,sortOrder ,searchType
SubNodes : data -> userName ,panoramaCount like this...
Examples : json.org
Edited 1 time(s). Last edit at 2015-09-22 05:47 by pythonui.
Posted by: pspad | Date: 2015-09-22 07:50 | IP: IP Logged
And where is the difference between file you edit and code explorer?
Code explorer should help you for faster nagigation. If there will be same content as in file you edit, the sense is gone
Posted by: pythonui | Date: 2015-09-22 08:10 | IP: IP Logged
Hello
It will be same as XML code explorer not the content ! (Nodes/subnodes).
Edited 1 time(s). Last edit at 2015-09-22 08:11 by pythonui.
Posted by: pspad | Date: 2015-09-22 08:26 | IP: IP Logged
JSON code exploerer must be assigned to any highlighter. As I know, there isn't JSON highlighter.
Posted by: pythonui | Date: 2015-09-22 08:38 | IP: IP Logged
Hello,
Sorry to say but I have created one JSON highlighter for my purpose !But there is no any inbuilt JSON highlighter :( .If you can create the highlighter for JSON then it would be great for JSON users . See the examples in my previous post(JSON-XML)...(http://json.org/example.html)
Thanks
Edited 1 time(s). Last edit at 2015-09-22 08:39 by pythonui.
Posted by: pspad | Date: 2015-09-22 09:48 | IP: IP Logged
Send me your JSON highlighter. I can be usefull for other users. I can create JSON code explorer then
Posted by: pythonui | Date: 2015-09-22 10:40 | IP: IP Logged
Hello,
Here is my highlighter for JSON (Simple as of now )
;PSPad user HighLighter definition file
[Settings]
Name=JSON
HTMLGroup=0
Label=1
FileType=*.json
CommentString=
IndentChar=
UnIndentChar=
TabWidth=0
SingleQuote=1
EscString=0
EscChar=\
KeyWordChars=_
CodeExplorer=ftUnknown
DocComment=
[KeyWords]
[ReservedWords]
[KeyWords2]
[KeyWords3]
NOTE : I have created color scheme for this also..
JSON Highlighter example :
Edited 3 time(s). Last edit at 2015-09-22 10:48 by pythonui.
Posted by: pythonui | Date: 2015-09-23 08:23 | IP: IP Logged
Hello,
So are you going to build code explorer for this (I think yes )?
Thanks
Edited 1 time(s). Last edit at 2015-09-23 08:23 by pythonui.
Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR