diff --git a/pages/advanced-algorithms/available-algorithms/json_util.mdx b/pages/advanced-algorithms/available-algorithms/json_util.mdx index ad2307870..356de08a1 100644 --- a/pages/advanced-algorithms/available-algorithms/json_util.mdx +++ b/pages/advanced-algorithms/available-algorithms/json_util.mdx @@ -144,6 +144,28 @@ YIELD objects RETURN objects; ``` +### `load_from_str()` + +The procedure loads data from a JSON string. + +{

Input:

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

Output:

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

Usage:

} + +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 @@ -230,4 +252,34 @@ Results: | James | Bond | +------------------+-------------------+ ``` - \ No newline at end of file + + +### Load JSON from string + + + +{

Input string

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

Import data

} + +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 | ++------------------+-------------------+ +``` +
diff --git a/pages/release-notes.mdx b/pages/release-notes.mdx index 16ebb09fe..e3d0d1d23 100644 --- a/pages/release-notes.mdx +++ b/pages/release-notes.mdx @@ -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.2 - December 23rd, 2025 {

🐞 Bug fixes

}