circlecell / jsoncompare.com Goto Github PK
View Code? Open in Web Editor NEWLicense: ISC License
License: ISC License
One of my favorite things about the old JSON Lint was how immediately I could get a pretty formatted JSON. It was a quick ctrl+V and a click and voila. I know this is a very small thing, but with the new JSON Compare tool, there are a few extra steps, which for me personally, are to pick the "Beautify (tabs)" option from the settings dropdown, and click on the Fullscreen button. While the mere presence of these options is a good thing as it adds more variants to the functionalities, this breaks the flow a little bit from the previous usage of the tool.
A solution I envision for this would be to have more configurations set on the URL of the page, for instance https://jsoncompare.com/#!/simple?settings=tabs&fullscreen=true
would open up the "simple" page on the "Beautify (tabs)" setting and on fullscreen. I could then bookmark this URL and have my own tailored quick & easy experience
Love this tool. It would be great to incorporate a dict key sort for the compare tool.
ie., http://novicelab.org/jsonabc/
Error message obstructs the editor, if the error is in the last line. Happens both on and off full screen.
Steps to reproduce:
Is there a way to install jsoncompare as node dependency through package.json in a project?
I have this JSON:
{
"query":"query {
form.test-graphql {
_id
field_name
field_date
field_number
}
","variables":{},"operationName":null}
That is validated and loaded by jsonviewer.
But, with JSONCompare I get this error:
Parse error on line 2: {"query":"query { form.test-
---------^ Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', got 'undefined'
What could be the problem?
Thanks :)
I would like to ask how to run the frontend and debug the frontend,thank you
The previous version of pro json linter had the ability to have multiple linters open at once and I can't seem to find a way to do that with the current version. The only thing I see if the diff linter but I don't want them to compare. Is there a way I can have multiple linters open on one tab without trying to diff them? There are many cases I just want to look at multiple json blobs without actually doing a diff on them.
Hi, have you considered a creation of a VS Code add-on?
The best part of the jsonlint was that it formats the JSON, has this now been removed from the advanced version?
It took a bit of sleuthing to find this repo. :)
Thank you for JSONLint.
I'd like a variant, or perhaps an option added to JSONLint, that validates JSON Lines.
That is, I want to paste in multiple lines of JSON Lines, and have JSONLint validate each line as a separate JSON object.
I understand at least some of the repercussions of what I'm asking for. For example, reformatting: inserting line breaks in JSON = pretty; inserting line breaks in JSON Lines = pretty ugly ๐.
REMOVED IMAGE
As you can see in the above image, when in fullscreen editor mode, the sponsor bar cuts off the final line of the JSON.
I thought you would like to know that the site certificate for the domain jsoncompare.com has not automatically been recreated and thus has expired - throwing up warnings and blocks unless you allow an exception.
Since an array of objects doesn't get a linebreak between the [
and {
, when you attempt to collapse the entire array only the first object collapses:
Also, if an array with multiple objects exist with no linebreaks pre-formatting, then they are kept without linebreaks by the formatter (e.g. }, {
) which results in this:
Note that every other object itself is collapsed and the remaining objects can't be collapsed.
If I add a linebreak between [
and {
and then collapse the array, it works as expected, hiding all of the array contents.
After calling POST https://jsoncompare.com/api/save
, it returns code 413
Just tossing this idea out there. Saw this article today and also had to use jsoncompare.com.
I haven't put much additional thought into the idea but figured it's worth a discussion.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.