https://github.com/br93/jolt-extension-vs-code
VS Code extension to help JOLT development
https://github.com/br93/jolt-extension-vs-code
jolt react typescript vscode-extension
Last synced: 4 months ago
JSON representation
VS Code extension to help JOLT development
- Host: GitHub
- URL: https://github.com/br93/jolt-extension-vs-code
- Owner: br93
- License: gpl-3.0
- Created: 2023-09-24T01:27:05.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-22T19:31:51.000Z (almost 2 years ago)
- Last Synced: 2025-01-07T18:43:39.059Z (over 1 year ago)
- Topics: jolt, react, typescript, vscode-extension
- Language: TypeScript
- Homepage:
- Size: 4.82 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JOLT extension for VS Code

## Commands
- JOLT (Create input/spec)
- JOLT (Transform)
- JSLT (Create jslt/json)
- JSLT (Transform)
### JOLT

### JSLT
- Open Command Pallete, type "JSLT (Create jslt/json)" to create jslt and json
- Edit jslt (example format):
```
let idparts = split(.id, "-")
let xxx = [for ($idparts) "x" * size(.)]
{
"id" : join($xxx, "-"),
"type" : "Anonymized-View",
* : .
}
```
- Edit json (example format)
```
{
"schema" : "http://schemas.schibsted.io/thing/pulse-simple.json#1.json",
"id" : "w23q7ca1-8729-24923-922b-1c0517ddffjf1",
"published" : "2017-05-04T09:13:29+02:00",
"type" : "View",
"environmentId" : "urn:schibsted.com:environment:uuid",
"url" : "http://www.aftenposten.no/"
}
```
- Open Command Pallete, type "JSLT (Transform)" and transform your payload