mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 22:30:54 +01:00
Does pkl compatible with json? Like yaml as example #38
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @x-0D on GitHub (Feb 6, 2024).
@bioball commented on GitHub (Feb 6, 2024):
Hi, yes, Pkl can output JSON, and can also parse JSON.
@x-0D commented on GitHub (Feb 6, 2024):
No, i mean, can i create json file and rename it to pkl, does it work as regular pkl file or pkl throw error? If i do this with yaml, yaml should work, because it fully compatible with json and extends it.
@bioball commented on GitHub (Feb 6, 2024):
Ah, no. Pkl's syntax is not compatible with JSON.
@bioball commented on GitHub (Feb 6, 2024):
Closing this out; feel free to start a conversation in https://github.com/apple/pkl/discussions if you want to learn more about Pkl