postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.84k stars 840 forks source link

JSON syntax needs a highlighter #9700

Open Swapnil-getpostman opened 3 years ago

Swapnil-getpostman commented 3 years ago

Is your feature request related to a problem? Please describe. Need a highlighter for JSON format while editing it in the value section under __ body -> form-data -> value. Please refer to the below screenshot for the same.

Postman - Agent 2021-03-09 10-42-42 png 2021-03-09 12-59-11

Describe the solution you'd like Highlighter for JSON format will help in understanding, viewing the code more efficiently.

DannyDainton commented 3 years ago

Hey @Swapnil-getpostman

This feels like it would need to be more that just a change for JSON highlighting as that form field is a text field, it could be a number of different formats.

It just so happens for your current use case, its for JSON 😁.

pikausp commented 3 years ago

Hey @Swapnil-getpostman

This feels like it would need to be more that just a change for JSON highlighting as that form field is a text field, it could be a number of different formats.

It just so happens for your current use case, its for JSON 😁.

Perhaps this could be implemented as a selector within the Value field, similar to the Text/File selector within the Key field? The dropdown would let you choose from the standard formats supported elsewhere (Text, Javascript, JSON,..).