Bug Report: Incorrect Variable Recognition and JSON Formatting Issues

Description:
While working with the system, I encountered an issue where variables in the body of a request are incorrectly recognized when they are formatted as ${var} (e.g., in a JSON payload). According to the official documentation, variables should be identified using the double-layer format ${[var]}. Therefore, it is my preliminary assessment that there is a bug in the variable recognition logic.
Please use the attached curl request to reproduce the issue.
This request exposes two problems:
Incorrect Variable Recognition: The variable
${var}is incorrectly being recognized and highlighted as a global variable instead of remaining unprocessed. Please refer to the attached screenshot for reference.JSON Formatting and Color Display Issue: When the JSON is formatted and beautified, the syntax highlighting for the JSON content is incorrect due to the presence of
${}. This issue is also illustrated in the attached screenshot.
Expected Behavior:
Variables in the format
${var}should not be automatically recognized as global variables unless they are correctly formatted as${[var]}.JSON formatting and color display should remain accurate and unaffected by incorrectly formatted variables.
Steps to Reproduce:
Send a
POSTrequest with a JSON payload containing a variable in the format${var}.Observe the variable recognition and JSON formatting in the response or interface.
Impact:
This issue affects the correct processing of variables within JSON payloads and disrupts the expected behavior of JSON formatting and color display, leading to potential misinterpretation of data.
Suggested Fix:
The yaak team may need to address and optimize the variable recognition logic and JSON formatting/color display mechanisms to ensure proper handling of variables and accurate JSON rendering.
Thank you for your attention to this matter. Please let me know if additional information is required.
Attachments:
Screenshot of Variable Recognition Issue
Screenshot of JSON Formatting Issue


https://github.com/mountain-loop/yaak/releases/tag/v2025.10.0-beta.6
The upgrade program confirmation has been resolved. I also provided feedback on some other issues. You can filter my content to take a look.
https://yaak.app/changelog/2026.1.0