You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the communication between Python scripts and Obsidian relies on JSON formatting over sockets. However, special characters such as quotes (" or '), commas (,), braces ({}), and other similar symbols present in note content, titles, or any data being passed through the socket can potentially disrupt the JSON structure and lead to errors in the communication process.
Expected Behavior
To ensure smooth communication over sockets, the system should properly escape and encode any special characters found in the content, title, or other data fields passed through the socket. This should include, but is not limited to:
Double and single quotes
Commas
Curly braces {}, square brackets []
Colons, semicolons
Backslashes \
Other potentially problematic characters
This way, the JSON strings remain valid and intact when being transmitted, and the system can handle any input safely without causing socket or parsing issues.
Additional Considerations
Handle cases where large chunks of data are passed that include special characters in various fields.
Ensure that JSON encoding/decoding processes escape characters in compliance with JSON standards.
Perform thorough testing for notes with edge cases, such as those containing code blocks or special symbols, to prevent communication failure.
By ensuring this, we can avoid communication errors between Obsidian and Python scripts, ensuring data integrity and smooth functionality.
The text was updated successfully, but these errors were encountered:
Description
Currently, the communication between Python scripts and Obsidian relies on JSON formatting over sockets. However, special characters such as quotes (
"
or'
), commas (,
), braces ({}
), and other similar symbols present in note content, titles, or any data being passed through the socket can potentially disrupt the JSON structure and lead to errors in the communication process.Expected Behavior
To ensure smooth communication over sockets, the system should properly escape and encode any special characters found in the content, title, or other data fields passed through the socket. This should include, but is not limited to:
{}
, square brackets[]
\
This way, the JSON strings remain valid and intact when being transmitted, and the system can handle any input safely without causing socket or parsing issues.
Additional Considerations
By ensuring this, we can avoid communication errors between Obsidian and Python scripts, ensuring data integrity and smooth functionality.
The text was updated successfully, but these errors were encountered: