MIT License

项目介绍

NPP-JSONViewer/JSON-Viewer 是一个托管在 GitHub 上的开源项目,主要使用 C++ 编写,采用 MIT License 许可证,目前获得 889 个 Star、171 次 Fork。

仓库全名
NPP-JSONViewer/JSON-Viewer
开源许可证
MIT License
Star 数
889
Fork 数
171
未关闭 Issue
24

README 摘要

JSONViewer for Notepad++ This plugin is designed to display JSON strings in a Treeview format and highlight the error position if any parsing issues occur. It's a simple and efficient tool, compatible with Notepad++. Instructions: 1. Copy the file NPPJSONViewer.dll to the plugins\NPPJSONViewer folder in the Notepad++ installation directory.. 2. Restart Notepad++ and ensure the plugin appears under the Plugins menu…

完整内容见 GitHub 原始 README 或本页 。

常见问题

JSON-Viewer 用什么语言开发?

主要使用 C++ 编写,采用 MIT License 许可证,目前有 889 个 Star。

JSON-Viewer 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 JSON-Viewer 的源码?

可以直接克隆仓库:git clone https://github.com/NPP-JSONViewer/JSON-Viewer.git,默认分支为 master;安装与运行步骤见仓库 README。

JSON-Viewer 最近还在维护吗?

仓库最近一次更新为 5 天前,当前有 24 个未关闭 Issue;Star 数为 889,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

A JSON viewer plugin for Notepad++. Displays the selected JSON string in a tree view.

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
1269
价值分
587
活跃状态
活跃

语言占比

C
C++

Release

README

JSONViewer for Notepad++

GitHub release     CI Build     Code Scanning

This plugin is designed to display JSON strings in a Treeview format and highlight the error position if any parsing issues occur. It’s a simple and efficient tool, compatible with Notepad++.

Instructions:

  1. Copy the file NPPJSONViewer.dll to the plugins\NPPJSONViewer folder in the Notepad++ installation directory…
  2. Restart Notepad++ and ensure the plugin appears under the Plugins menu.
  3. Open a document containing a JSON string (or paste in some JSON text).
  4. Select the JSON fragment and go to Plugins > JSON Viewer > Show JSON Viewer or press or press Ctrl+Alt+Shift+J.
  5. Voila, that’s it! If the JSON is valid, it will be displayed in a Treeview format.

Latest Updates:

2.2.0.0

  1. Bug/regression fixes:

    1. Fixed handling of JSON raw number values during formatting and serialization.
    2. Fixed parser behavior to preserve numeric values as strings when required by using RapidJSON’s kParseNumbersAsStringsFlag.
    3. Added unit tests 3.1 Added extensive unit tests for JSON sorting functionality. 3.2 Added additional parser and regression test coverage. 3.3 Expanded overall automated test coverage to improve reliability.
  2. Other enhancements:

    1. Upgraded project and build infrastructure to Visual Studio 2026.
    2. Migrated solution management to .slnx format.
    3. Migrated shared components from external copies to Git submodules for improved maintainability.
    4. Updated project dependencies and submodules, including Google Test.
    5. Improved code quality through refactoring, formatting, and minor performance optimizations.
    6. Modernized GitHub Actions workflows and CI/CD dependencies.

2.1.1.0

  1. New features:

    1. Zoom tree view with ctrl + mouse wheel or slider.
  2. Bug/regression fixes:

    1. Updated to the latest RapidJSON parser.
    2. Minor code enhancements for improved performance.
    3. Added unit tests

2.1.0.0

  1. New features:

    1. Navigate directly to the JSON node in the editor upon node selection (using left mouse click or arrow keys).
    2. Select the JSON key in the editor when double-clicking on a node.
  2. Bug/regression fixes:

    1. Updated to the latest RapidJSON parser.
    2. Minor code enhancements for improved performance.
    3. Added unit tests

2.0.8.0

  1. New features:

    1. Sort ascending by key
    2. Add file name in the title for visibility
  2. Bug/regression fixes:

    1. Updated license text on UI as per GitHub link
    2. Explicit callout for no support on multi selection
    3. Some other minor code and UI enhancements

2.0.7.0

Bug/regression fixes:

  1. “Copy value” / “Copy” not always return complete text
  2. Format JSON option does not work if focused tab is in other view
  3. Corrected some typos on setting dialog
  4. Updated icons to match with dark mode as well
  5. Removed quotes from the key in Treeview
  6. Some other minor enhancements

2.0.6.0

  1. New feature:
    1. Replace value ‘undefined’ with ‘null’. This is configurable feature.
  2. Bug/regression fixes:
    1. Cyrillic text is not properly shown in json tree view dialog

2.0.5.0

  1. New feature:
    1. Make json highlighter configurable
  2. Bug/regression fixes:
    1. Handle json for both the views.
    2. Update treeview on reopen
    3. When file type is json, then error message is shown twice on npp launch if viewer dock was kept opened on previous instance
    4. Don’t show error message on startup for non json files

2.0.4.0

  1. New feature:
    1. Show element count for list/array
  2. Bug/regression fixes:
    1. Crash fix: Setting dialog is not shown if about dialog is opened before it.
    2. Set language type JSON properly
    3. Some minor UI enhancements

2.0.3.0

  1. New feature:
    1. Search in json tree window
    2. Handle NaN, Inf, -Inf, Infinity, -Infinity properly
  2. Bug/regression fixes:
    1. Handle all types of arrays which does not have any key
    2. Corrected typos in setting json
    3. Don’t use double qoutes for other than string type

2.0.2.0

  1. Provided UI to control formatting option via setting dialog
    1. Setting for indentation
    2. Setting for line ending
    3. Setting for line format
    4. Make json parsing configurable e.g. ignore trailing comma, ignore comment
  2. Added couple of new feature
    1. Follow json tree for current tab if it is json file
    2. Auto format json file when opened (by direct or by tab switching)
  3. Few bug/regression fixes

2.0.1.0

  1. Redeveloped UI
    1. Provided menu icon
    2. Json view panel is redesigned which is button like, refresh, validate, format etc.
    3. It uses well performed class instead of plain function
  2. Current selected node path is given on the bottom of json view window
  3. Many feature support such as copy node, copy value, copy path, expand/collapse all etc.
  4. Few bug fixes

1.41

  1. Support for ARM64
  2. Dropped Windows XP support as Notepad++ is no more supporting Windows XP.
  3. Upgrade Visual Studio to 2022

1.40

  1. issue-55 Format JSON should also set the language to JSON #FeatureRequest
  2. issue-56 Format Should Follow Line Break Settings
  3. issue-57, issue-60 “Should add a function to remove line breaks and spaces” Thanks @neoarc
  4. issue-68 Crashing Notepad++
  5. issue-72 tab setting from notepad++ settings are not honored
  6. issue-73 Display tree for Array of Object
  7. issue-80 use line ending setting from editor
  8. Relaxed parsing. Supports trailing commas, comments(only parsing), NaN and infinity JS literals.

1.34

  1. Fix Access Violation issue #51
  2. Fix issue #47
  3. Fix issue #43

1.31

  1. Reads tab setting from notepad++ settings

1.30a

  1. Now using rapidjson

1.24

  1. 64 bit support. Thanks @chcg

1.23

  1. Select all text when no selection Thanks @vakio
  2. fix memory leak and close About dialog when clicking “Close” button Thanks @quangnh89

1.22

  1. Fixed display of boolean values. Now displaying as “key”:True/False Thanks @yoyokenny
  2. Fixed hang on faulty JSON. Thanks @vancekic

1.21

  1. Fixed display of UTF-8 characters.

1.20

  1. Fixed bug “#3 quoted doublequotes-Jan Huschauer”

1.19

  1. Added a command to format JSON

1.175

  1. Now displays a message box when JSON string is not selected.

1.17

  1. Fixed dialog display issue, that occurred in 1.16 release.

1.16

  1. Fixed bug - 3305433 do not find error on second try and do not build tree
  2. Fixed a memory leak…was not de-allocating memory allocated to json strings

1.15

  1. Fixed bug 3203739 “Unable to parse JSON Arrays”

1.1

  1. Fixed hotkey, now press CTRL+SHIFT+ALT+J(default).
  2. Marks error position in JSON

Contributors

评论

暂无评论