Latest post of the previous page:
Катастрофически не хватает поддержки комментов. Полным-полно .json-файлов с комментами (как то строки начинающиеся на #), с ними плагин не работает.JSON Browser
-
- Posts: 1331
- Joined: Mon 04 Apr, 2005 13:41
- Location: San Ramon, CA / Kharkov, UA
- Has thanked: 32 times
- Been thanked: 61 times
JSON Browser
Orfa, а можно показать спецификацию json формата с поддержкой комментариев?
Мы не можем ждать милостей от Фара, взять их у него — наша задача! (C) Мичурин
JSON Browser
Поддержка комментов скоро будет, новая версия парсера rapidjson, который я использую, поддерживает "расслабленный" синтаксис, включая запятые в конце списка. Все никак не выпущу новую версию, хотел добавить редактирование, но, видно, выпущу без.
- HaRT
- Moderator
- Posts: 10869
- Joined: Tue 30 Aug, 2005 17:21
- Has thanked: 221 times
- Been thanked: 358 times
JSON Browser
yms, спасибо за плагин!
Мелкая блоха в русской Справке: „Поддерживается навигация по указателям JSON is supported.“
Нет ли какой-то реалистичной возможности добавить выборку множества элементов по запросу? Подобно XPath в XML Browser… А лучше, конечно, подобно XQuery для XML…
Мелкая блоха в русской Справке: „Поддерживается навигация по указателям JSON is supported.“
Нет ли какой-то реалистичной возможности добавить выборку множества элементов по запросу? Подобно XPath в XML Browser… А лучше, конечно, подобно XQuery для XML…
Last edited by HaRT on Thu 11 May, 2017 23:32, edited 2 times in total.
Фар есть инструмент, а не нянька. © 2009 DrKnS
JSON Browser
Аналогом XQuery, насколько я понял, служит JSONiq (http://jsoniq.org). Но это вроде целый язык, одной строчкой не отделаешься. Rapidjson, которым я пользуюсь, его не поддерживает, а кто поддерживает - некогда сейчас искать.HaRT wrote:Нет ли какой-то реалистичной возможности добавить выборку множества элементов по запросу? Подобно XPath в XML Browser… А лучше, конечно, подобно XQuery для XML…
JSON Browser
Добрый день
Если в буфере обмена ничего нет, например сразу после загрузки компьютера, или там например картинка, то при выборе "Parse JSON from Clipboard" через плагинное меню по F11 падает весь Far
PS: Far Manager, version 3.0.6166.0 x64
JSON Browser for FAR Manager 1.30
Если в буфере обмена ничего нет, например сразу после загрузки компьютера, или там например картинка, то при выборе "Parse JSON from Clipboard" через плагинное меню по F11 падает весь Far
PS: Far Manager, version 3.0.6166.0 x64
JSON Browser for FAR Manager 1.30
- HaRT
- Moderator
- Posts: 10869
- Joined: Tue 30 Aug, 2005 17:21
- Has thanked: 221 times
- Been thanked: 358 times
JSON Browser
Подтверждаю и в x86.
- Attachments
-
- bug_report.txt
- Far Manager, version 3.0.6166.0 x86
- (193.99 KiB) Downloaded 38 times
Фар есть инструмент, а не нянька. © 2009 DrKnS
- rohitab
- Posts: 39
- Joined: Sat 12 Aug, 2023 09:08
- Location: USA
- Has thanked: 5 times
- Been thanked: 12 times
- Contact:
JSON Browser
I've created a binary patch to fix the crash when the clipboard is empty or contains an image. Once you apply this patch, the JSON Browser plugin will display the following message instead of crashing.
You can apply the patch by running the following command in
Please note that this patch is only for Version 1.30 64-bit. I just installed the plugin and haven't tested this thoroughly, so if you run into any issues, let me know.
p.s. I found the JSON Browser plugin thanks to this post. Both the JSON and XML Browser plugins are very useful. Not sure how I missed seeing them before.
Code: Select all
╔══════════ Error ═══════════╗
║ The JSON document is empty ║
║ File offset: 0 ║
╟────────────────────────────╢
║ { OK } ║
╚════════════════════════════╝
%FARHOME%\Plugins\json
directory, or whichever directory contains json.dll
. Make sure Far is not running or unload the plugin before applying the patch.git apply JSON-Browser-v1.3-x64.patch
Please note that this patch is only for Version 1.30 64-bit. I just installed the plugin and haven't tested this thoroughly, so if you run into any issues, let me know.
p.s. I found the JSON Browser plugin thanks to this post. Both the JSON and XML Browser plugins are very useful. Not sure how I missed seeing them before.
- Attachments
-
- JSON-Browser-v1.3-x64.patch
- JSON Browser v1.3 64-bit Clipboard Patch
- (584 Bytes) Downloaded 54 times
JSON Browser
on plugin from Plugring,
on apply patch, got:
error: the patch applies to 'json.dll' (19007fd832161308c173f31f209c6ba346fdfd78), which does not match the current contents.
- rohitab
- Posts: 39
- Joined: Sat 12 Aug, 2023 09:08
- Location: USA
- Has thanked: 5 times
- Been thanked: 12 times
- Contact:
JSON Browser
I think you might be applying the patch to
As you can see, before applying the patch, the SHA-1
If you try to apply the patch again, on an already patched file, you will get an error as seen here.
However, if you reverse the patch, it should give you back the original file, which you can verify by checking the SHA-1 hash again.
Manually Patching
If you're still running into issues, you can apply the patch manually by making the following changes in
After making the above changes, the SHA-1 of
json.dll
that has already been patched. I just downloaded json130W3x64.zip from Far PlugRing and tested it out. Here is the output showing the SHA-1 hash and the Git command.Code: Select all
[E:\Downloads\json130W3x64]sha1sum json.dll
80be59e1e7c11bcf96efbc6bdc387622a61bf7ba json.dll
[E:\Downloads\json130W3x64]git apply JSON-Browser-v1.3-x64.patch
[E:\Downloads\json130W3x64]sha1sum json.dll
50f14b30a2f722af73f575924cc05a905d4bc616 json.dll
80be59e1e7c11bcf96efbc6bdc387622a61bf7ba
matches yours from json.dll
If you try to apply the patch again, on an already patched file, you will get an error as seen here.
Code: Select all
[E:\Downloads\json130W3x64]git apply JSON-Browser-v1.3-x64.patch
error: the patch applies to 'json.dll' (19007fd832161308c173f31f209c6ba346fdfd78), which does not match the current contents.
error: json.dll: patch does not apply
Code: Select all
[E:\Downloads\json130W3x64]git apply -R JSON-Browser-v1.3-x64.patch
[E:\Downloads\json130W3x64]sha1sum json.dll
80be59e1e7c11bcf96efbc6bdc387622a61bf7ba json.dll
Manually Patching
If you're still running into issues, you can apply the patch manually by making the following changes in
json.dll
using any Hex editor, like Hexitor.Code: Select all
File Offset: 0000EC02
Original Bytes: 33 DB 48 89 5D F7
Patched Bytes: E9 CB 4F 00 00 90
File Offset: 00013BD2
Original Bytes: CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC
Patched Bytes: 31 DB 48 89 5D F7 48 85 C0 75 02 FE C0 E9 24 B0 FF FF
json.dll
should be 50f14b30a2f722af73f575924cc05a905d4bc616
JSON Browser
Жаль что плагин не обновляется. Вообще было б здорово в одном месте сделать поддеркжу и json, и yaml, и bson, и т.д...