[PR #605] [MERGED] JSON linting in the code editor #2745

Closed
opened 2026-03-17 00:25:14 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/605
Author: @AndrewBastin
Created: 2/25/2020
Status: Merged
Merged: 2/25/2020
Merged by: @AndrewBastin

Base: masterHead: feat/lint-json


📝 Commits (2)

  • f7f4f02 Added a JSON parser to evaluate JSON code
  • b9b0745 Added linting for JSON in the Code Editor

📊 Changes

2 files changed (+347 additions, -9 deletions)

View changed files

📝 components/ace-editor.vue (+37 -9)
functions/jsonParse.js (+310 -0)

📄 Description

This PR intends to add the ability for the Ace Code Editor to provide linting for JSON files in Postwoman.

You can try out the linter through any editor instance that specifies JSON as the language (so basically the GraphQL variable editor and the POST request content editor (when content type is set to application/json)).


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/605 **Author:** [@AndrewBastin](https://github.com/AndrewBastin) **Created:** 2/25/2020 **Status:** ✅ Merged **Merged:** 2/25/2020 **Merged by:** [@AndrewBastin](https://github.com/AndrewBastin) **Base:** `master` ← **Head:** `feat/lint-json` --- ### 📝 Commits (2) - [`f7f4f02`](https://github.com/hoppscotch/hoppscotch/commit/f7f4f02d4acb4dee6d746923282672ee98017ebb) Added a JSON parser to evaluate JSON code - [`b9b0745`](https://github.com/hoppscotch/hoppscotch/commit/b9b0745f309e8b9282db13d1450b9ca46f4d0a8c) Added linting for JSON in the Code Editor ### 📊 Changes **2 files changed** (+347 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `components/ace-editor.vue` (+37 -9) ➕ `functions/jsonParse.js` (+310 -0) </details> ### 📄 Description This PR intends to add the ability for the Ace Code Editor to provide linting for JSON files in Postwoman. You can try out the linter through any editor instance that specifies JSON as the language (so basically the GraphQL variable editor and the POST request content editor (when content type is set to `application/json`)). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 00:25:14 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#2745
No description provided.