# Source Script Node (Object)

This node allows you to customize data extraction and manipulation then return data in JSON format to the following node.

Example: Read a JSON file, parse its content, and return the resulting JSON object.

```javascript
var jsonContent = FileUtil.readFileContent("d:\\creds.json");
return JsonUtil.parse(jsonContent);
```

#### Example: Retrieve data from API and return as JSON

```typescript
// Initiate an HTTP GET request
var request = HttpUtil.get("https://boi.org.il/PublicApi/GetExchangeRates");

// Parse the JSON response
var jsonContent = JsonUtil.parse(request.asString().getBody());

return exchanges;
```

<figure><img src="https://lh7-us.googleusercontent.com/h-H3YCibQYuSkb50GA7ojME_Km_VThtgoXD-xzXnGoVPTOn6-4dM50-Ot5JViwBKc_veOLkh_i1SuEjJQPZ8AE64XveBrZTWO9y11_WLGMF0yrOPtrNMVYc9NPOqFxI6dssGCJnVdcnD6TZ7xfKy7gU" alt=""><figcaption><p>Script Source (Object)</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.b2winsuite.com/5.5/scripting/scripting-in-b2data/custom-script-nodes/source-script-node-object.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
