JSON Viewer Plugin

Support for developers of new plugins, third-party plugin announcements and discussions.
User avatar
stepand76
Plugin Developer
Plugin Developer
Posts: 455
Joined: 16 Apr 2007, 21:22
Location: Pardubice, Czech Republic

JSON Viewer Plugin

Post by stepand76 »

JSON Viewer is viewer for data in JSON (JavaScript Object Notation) format.

Plugin is available here:

http://sites.google.com/site/stepand76/asplugins-enu

You can discuss the plugin in this thread.

Any comments, suggestions and feature requests are welcome.
User avatar
stepand76
Plugin Developer
Plugin Developer
Posts: 455
Joined: 16 Apr 2007, 21:22
Location: Pardubice, Czech Republic

Post by stepand76 »

Code: Select all

Version 0.2.0 (28.1.2009)
-------------------------
[-] Fixed memory leak when showing of data from clipboard.
[+] Texts moved to SLG file (now it is possible to translate plugin to other languages).
[+] Added version information (VERSION_INFO) into plugin binnary files.
[+] Added plugin icon and icon of viewer window.
[-] Fixed placement of viewer window.
[-] Fixed showing of message dialogs (icon, set of buttons).

Legend
------
[*] Change
[-] Bugfix
[+] New feature, enhancement
Plugin is available here:
http://sites.google.com/site/stepand76/asplugins-enu
Last edited by stepand76 on 04 Feb 2009, 10:09, edited 1 time in total.
User avatar
stepand76
Plugin Developer
Plugin Developer
Posts: 455
Joined: 16 Apr 2007, 21:22
Location: Pardubice, Czech Republic

Post by stepand76 »

Code: Select all

Version 0.3.0 (4.2.2009)
------------------------
[+] Added compatibility with AS 2.52 beta 1.

Legend 
------ 
[*] Change 
[-] Bugfix 
[+] New feature, enhancement
Plugin is available here:
http://sites.google.com/site/stepand76/asplugins-enu
User avatar
stepand76
Plugin Developer
Plugin Developer
Posts: 455
Joined: 16 Apr 2007, 21:22
Location: Pardubice, Czech Republic

Re: JSON Viewer Plugin

Post by stepand76 »

Code: Select all

Version 0.4.0 (24.8.2009)
-------------------------
[*] Fixed compatibility with AS 2.5, 2.51 and 2.52 beta 2.
[-] Fixed Alt+Space navigation in viewer.

Legend
------
[*] Change
[-] Bugfix
[+] New feature, enhancement
Plugin is available here:
http://sites.google.com/site/stepand76/asplugins-enu
User avatar
stepand76
Plugin Developer
Plugin Developer
Posts: 455
Joined: 16 Apr 2007, 21:22
Location: Pardubice, Czech Republic

Re: JSON Viewer Plugin

Post by stepand76 »

Code: Select all

Version 0.5.0 (23.10.2009)
--------------------------
[+] Added the "Focus" command (F) - focuses the file in the panel.
[*] JSON Toolkit 1.1.

Legend 
------ 
[*] Change 
[-] Bugfix 
[+] New feature, enhancement


Plugin is available here:
http://sites.google.com/site/stepand76/asplugins-enu
User avatar
stepand76
Plugin Developer
Plugin Developer
Posts: 455
Joined: 16 Apr 2007, 21:22
Location: Pardubice, Czech Republic

Re: JSON Viewer Plugin

Post by stepand76 »

Code: Select all

Version 0.6.0 (4.3.2010)
------------------------
[*] Built with Delphi 2010.
[+] Enhanced "About" window.
[+] Added an option to save possion and size of viewer's windows.
[+] Added an option to prefer keyboard shortcuts in main menu.
[*] JSON Toolkit 1.2.

Legend 
------ 
[*] Change 
[-] Bugfix 
[+] New feature, enhancement
Attachments
jsonviewer_0.6.0.zip
(722.26 KiB) Downloaded 1084 times
User avatar
mdruiter
Posts: 262
Joined: 22 Feb 2006, 15:33
Location: Amsterdam, The Netherlands
Contact:

Re: JSON Viewer Plugin

Post by mdruiter »

I noticed that all tree entries are editable. Or at least, they look like that: just click on the active entry and type some text. Nothing is stored of course.
Should it be readonly?
User avatar
stepand76
Plugin Developer
Plugin Developer
Posts: 455
Joined: 16 Apr 2007, 21:22
Location: Pardubice, Czech Republic

Re: JSON Viewer Plugin

Post by stepand76 »

mdruiter wrote:Should it be readonly?
Yes, it should be. Thanks for the info.
User avatar
frax
Posts: 58
Joined: 23 Apr 2007, 07:24
Location: Stockholm, Sweden
Contact:

Re: JSON Viewer Plugin

Post by frax »

I tested it with AS 2.54, but I get "Error parsing JSON data" on all the files I try...
--
Hugo Ahlenius
User avatar
stepand76
Plugin Developer
Plugin Developer
Posts: 455
Joined: 16 Apr 2007, 21:22
Location: Pardubice, Czech Republic

Re: JSON Viewer Plugin

Post by stepand76 »

It works for me, please provide a one.
User avatar
frax
Posts: 58
Joined: 23 Apr 2007, 07:24
Location: Stockholm, Sweden
Contact:

Re: JSON Viewer Plugin

Post by frax »

I am trying this file - for instance...
countries.json.txt
example json-file
(2.47 KiB) Downloaded 969 times
--
Hugo Ahlenius
User avatar
Ether
Posts: 1471
Joined: 10 May 2007, 16:08
Location: Czech Republic
Contact:

Re: JSON Viewer Plugin

Post by Ether »

It's failing to parse the data because the it's not valid JSON (although it seems it's a valid JS object literal). If you look at http://json.org/, you'll see that JSON allows only double quotes to enclose strings and keys in objects have to be strings too.
Ελληνικά rulez.
User avatar
frax
Posts: 58
Joined: 23 Apr 2007, 07:24
Location: Stockholm, Sweden
Contact:

Re: JSON Viewer Plugin

Post by frax »

ok got it, thanks!
--
Hugo Ahlenius
User avatar
SvA
Posts: 483
Joined: 29 Mar 2006, 02:41
Location: DE

Re: JSON Viewer Plugin

Post by SvA »

Looks like the viewer does not work if the root element is not an object. My .json files have a list at it's root and only show the "JSON" tree root in the viewer.

Am I missing something?

The files have been downloaded from the codeplex archive, e.g. https://archive.codeplex.com/?p=visuallogparser.

I am using JSON Viewer Plugin Ver. 0.6.0 downloaded from this thread on AS 2.54
User avatar
mdruiter
Posts: 262
Joined: 22 Feb 2006, 15:33
Location: Amsterdam, The Netherlands
Contact:

Re: JSON Viewer Plugin

Post by mdruiter »

Looks like the plugin does not work for Altap Salamander 4.0. I get this error when I try to add the plugin:
Unable to load plugin (<path>\plugins\jsonviewer\jsonviewer.spl) or some of its components.
Error: (1400) Invalid window handle.

See plugin details in menu Plugins / Plugins Manager.
Is there an updated version available?
Post Reply