Does pkl compatible with json? Like yaml as example #38

Closed
opened 2025-12-30 01:19:49 +01:00 by adam · 4 comments
Owner

Originally created by @x-0D on GitHub (Feb 6, 2024).

Originally created by @x-0D on GitHub (Feb 6, 2024).
adam closed this issue 2025-12-30 01:19:49 +01:00
Author
Owner

@bioball commented on GitHub (Feb 6, 2024):

Hi, yes, Pkl can output JSON, and can also parse JSON.

@bioball commented on GitHub (Feb 6, 2024): Hi, yes, Pkl can output JSON, and can also parse JSON.
Author
Owner

@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.

@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.
Author
Owner

@bioball commented on GitHub (Feb 6, 2024):

Ah, no. Pkl's syntax is not compatible with JSON.

@bioball commented on GitHub (Feb 6, 2024): Ah, no. Pkl's syntax is not compatible with JSON.
Author
Owner

@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

@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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pkl#38