SublimePrettyJson: Not working on ST4
Getting error Expecting value: line 1 column 1 (char 0) when trying to prettify JSON files.
These files work fine with python’s json module and with this package on ST3.
I installed directly from this repo today to double check and had the same problem.
Example of JSON (pulled from the web) that didn’t work with me as described above:
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Trainer notes",
"\n",
"Copyright"
]
},
{
"cell_type": "markdown",
"metadata": {
"toc": true
},
"source": [
"<h1>Table of Contents<span class=\"tocSkip\"></span></h1>\n",
"<div class=\"toc\"><ul class=\"toc-item\"><li><span></span></div>"
]
}
]
}
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 14
- Comments: 17
Looks like it fixed it. Thank you!
Yes it is
Most likely? This is a fresh version of Sublime Text build 4107, with just package control and Pretty JSON in it.
I’m not sure if it helps or not, but I am on Linux. If there’s any other questions that I can answer to try and fix this, feel free to ask away.
Thanks, I’ve push a new release that hopefully resolves these issues. This should populate within Package Control soon
Has this been fixed yet? Or is it still in the pipeline?
I’m still having this issue today on
build 4107of Sublime Text andv1.0.3of Pretty JSONApparently it is any JSON at all. For example, these all produce the error
{}[]{"a": 1 }