Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix format of json data in body #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

timsu92
Copy link

@timsu92 timsu92 commented Jul 4, 2024

好像是 JSON 不支援單引號,要使用單引號好像要 JSON 5 才支援的樣子。
剛剛在 Ubuntu 上嘗試,原先的寫法 Ubuntu 也不行,改成這樣就可以了。

@twtrubiks
Copy link
Owner

蠻奇怪的 我再我這邊反而要用 雙引號才可以, 我是用 debian 12, ubuntu 20.04 也是, 我再猜應該是和 terminal 有關, 我這邊是用 Zsh

@timsu92
Copy link
Author

timsu92 commented Jul 6, 2024

酷耶!我也是用zsh,zsh 5.8.1 (x86_64-ubuntu-linux-gnu),不過系統是 Ubuntu 22.04,不過我這邊測試要用有修改後的程式才會運作,蠻酷的...
還是我們怎麼寫會比較好呢?

@twtrubiks
Copy link
Owner

就暫時兩種寫法都保留 哈哈

@timsu92
Copy link
Author

timsu92 commented Jul 16, 2024

好的!這樣如何?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants