Skip to content

Commit

Permalink
add JSON as default supported language
Browse files Browse the repository at this point in the history
  • Loading branch information
acharyakavita committed Aug 13, 2024
1 parent e35950e commit 9018924
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
27 changes: 27 additions & 0 deletions packages/demo/src/sample-code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,4 +206,31 @@ impl GroceryItem {
}
`,
},
["JSON"]: {
language: "json",
code: `
{
"id": 1,
"name": "John Doe",
"email": "[email protected]",
"address": {
"street": "123 Main St",
"city": "San Diego",
"state": "CA",
"zip": "12345"
},
"phoneNumbers": [
{
"type": "home",
"number": "555-123-4567"
},
{
"type": "work",
"number": "555-901-2345"
}
],
"interests": ["reading", "hiking", "coding"]
}
`,
},
}
1 change: 1 addition & 0 deletions packages/generate-prism-languages/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const languagesToBundle = <const>[
"cpp",
"markdown",
"python",
"json"
]

/**
Expand Down

0 comments on commit 9018924

Please sign in to comment.