# Log in, then extract JSON

Source: https://zshot-app.com/help/sales-report-json/
Markdown: https://zshot-app.com/help/sales-report-json/index.md
Section: [Help](https://zshot-app.com/help/) › Navigate
Kind: Agent

Have an agent open a report, then get it back as JSON in the shape you define.

Requires a Pro license.

Video: [sales-report-json.webm](https://zshot-app.com/media/help/sales-report-json.webm)

## What to do

1. **Paste it** Paste this into the URL field: `https://zshot-cli.com/example_assets/zrm/`
2. **Choose JSON** Click the settings button beside the URL field, then Screenshot, then Ask the page. Click JSON.
3. **Say what you want back** Click Edit prompt, enter what the result should hold, then click Done: `The sales report as JSON`
4. **Give it a shape** Click Define a schema, paste this, then click Done: `{"type":"array","items":{"type":"object","properties":{"company":{"type":"string"},"contact":{"type":"string"},"value":{"type":"number"}}}}`
5. **Say what to do** Click Navigate, choose your model under Model, and describe the job: `Login, change the region to APAC, and click on Sales Report`
6. **Add the login** Click Advanced Options, then Credentials, and add a username and a password, then click Save.
7. **Capture it** Click Capture. The status line follows each step, and the report opens as JSON in the shape you gave it.

Do this from the command line: https://zshot-cli.com/examples/sales-report-json/
Reference: [--llm-format-expects](https://zshot-cli.com/reference/flags/document/llm-format-expects/)

## Related

- [Log in, then capture](https://zshot-app.com/help/navigate-login/) — An agent logs in and captures the page behind it.
- [Upload a file, download the result](https://zshot-app.com/help/enhance-leads/) — An agent uploads a file and brings back the result.

## Navigation

- [ZShot](https://zshot-app.com/)
- [Help](https://zshot-app.com/help/)
- [Download ZShot](https://zshot-app.com/download.html)
- [CLI documentation](https://zshot-cli.com/)

Site index: https://zshot-app.com/llms.txt

