Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 53 additions & 1 deletion pages/advanced-algorithms/available-algorithms/json_util.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,28 @@ YIELD objects
RETURN objects;
```

### `load_from_str()`

The procedure loads data from a JSON string.

{<h4 className="custom-header"> Input: </h4>}

- `json_str: string` ➡ JSON string that needs to be loaded.

{<h4 className="custom-header"> Output: </h4>}

- `objects: List[object]` ➡ A list of JSON objects from the string that is being loaded.

{<h4 className="custom-header"> Usage: </h4>}

Use the following query to load data from a JSON string:

```cypher
CALL json_util.load_from_str(json_str)
YIELD objects
RETURN objects;
```

## Examples

### Load JSON from path
Expand Down Expand Up @@ -230,4 +252,34 @@ Results:
| James | Bond |
+------------------+-------------------+
```
</Steps>
</Steps>

### Load JSON from string

<Steps>

{<h3 className="custom-header"> Input string </h3>}

The JSON string is `{"first_name": "James", "last_name": "Bond"}`.

{<h3 className="custom-header"> Import data </h3>}

Directly parse the JSON string:

```cypher
CALL json_util.load_from_str('{"first_name": "James", "last_name": "Bond"}')
YIELD objects
UNWIND objects AS o
RETURN o.first_name AS name, o.last_name AS surname;
```

Results:

```plaintext
+------------------+-------------------+
| name | surname |
+------------------+-------------------+
| James | Bond |
+------------------+-------------------+
```
</Steps>
10 changes: 8 additions & 2 deletions pages/release-notes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ troubleshoot in production.

## 🚀 Latest release

### Memgraph v3.8.0

### MAGE v3.8.0

### Lab v3.8.0

## Previous releases

### Memgraph v3.7.0 - November 19th, 2025

{<h4 className="custom-header">⚠️ Breaking changes</h4>}
Expand Down Expand Up @@ -209,8 +217,6 @@ troubleshoot in production.
by simply overriding the entry point.
[#693](https://github.com/memgraph/mage/pull/693)

## Previous releases

### Memgraph v3.6.2 - November 4th, 2025

- Version bump to v3.6.2 to match the latest MAGE version.
Expand Down