Balou Tools

🔄 JSON Transformer

Automatically convert your JSON data structures into type specifications and DTO classes for TypeScript or Java.

JSON Input

Generated Code

The generated code will be output here.

Guide & best practices

JSON Transformer for JSONPath and jq queries

Extract and reshape JSON data with expressions for filtering, projection and array evaluation, locally in the browser.

Typical use cases

Ideal for API debugging, data extraction, quick reports from JSON logs and reshaping responses for tests.

How Balou transforms JSON

Enter JSON and a JSONPath/jq expression; Balou evaluates it locally and shows the filtered/reshaped result.

JSON query best practices

Test expressions step by step, start with broad paths and refine with filters; keep sensitive data local.

Frequently asked questions

How does a JSONPath expression work?

JSONPath addresses nodes via paths, e.g. $.users[?(@.active)].email for the emails of all active users.

jq or JSONPath – what is the difference?

jq is a powerful pipeline language (e.g. .items[].id), JSONPath a compact path syntax; both select subtrees.

How do I filter arrays by condition?

With a predicate, e.g. $.products[?(@.price > 100)] for all products above 100.

Is my data sent anywhere?

Evaluation runs locally in the browser; still, do not enter real secrets.