Reading the repo
Opening the box…
Reading the repo
Opening the box…
How to install on Linux
JSON query and transformation language
Saved setup from 3 h ago
Will it work on Linux?
Then run bash setup.sh. It stops at the first error and is safe to run again. Servers and tests aren't started; it lists them at the end. Read it first.
git clone https://github.com/schibsted/jslt.git cd jslt
JDK 11
sudo apt install openjdk-11-jdk # Debian/Ubuntu
mvn install -DskipTests
mvn exec:java
To transform one JsonNode into another, do:
import com.schibsted.spt.data.jslt.Parser;
import com.schibsted.spt.data.jslt.Expression;
JsonNode input = ...;
Expression jslt = Parser.compileString(transform);
JsonNode output = jslt.apply(input);
For more alternatives, see the javadoc.
No reports for Linux yet.
GitManual AI Agent reads the 4 key files and writes a step-by-step guide for Linux. Once written, it's saved for everyone.