# Ingesting JSON Data into into Neo4j and vector indexing

**URL:** <https://community.neo4j.com/t/ingesting-json-data-into-into-neo4j-and-vector-indexing/73820>\
**Category:** GraphRAG\
**Created:** [May 12, 2025, 9:54am UTC](https://community.neo4j.com/t/ingesting-json-data-into-into-neo4j-and-vector-indexing/73820 "2025-05-12T09:54:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![deepa.adiga](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/deepa.adiga/32/33575_2.png) [@deepa.adiga](https://community.neo4j.com/u/deepa.adiga)\
**Post date:** [May 12, 2025, 9:54am UTC](https://community.neo4j.com/t/ingesting-json-data-into-into-neo4j-and-vector-indexing/73820/1 "2025-05-12T09:54:15Z")

</div>

Hello All,  
I am new to Neo4J.  
I have a json containing Source, Target and Relations. There are many metadata properties for nodes and relations. Sample of JSON object below.  
{  
"sourcenode": {  
"name": "Loan for business purpose",  
"type": "Transaction"  
},  
"relation": {  
"name": "does not amount to",  
"type": "Tax Classification",  
"details": {  
"sourceid": "17277",  
"relationtext"" "..."  
"fullcontentchunk": " ... ",   
"extracted\_from": "ABC.pdf"  
}  
},  
"targetnode": {  
"name": "Deemed dividend",  
"type": "Tax Category"  
}  
}  
I want to create a graph in Neo4j to represent this JSON such that I want to have vectors for nodes, relations and for metadata like "relationtext" and "fullcontenttext".

I want to run Hybrid search with Cypher query and vector retrieval from the Graph.

How can I create the Graph, ingest and retrieve? Using Langchain and python the achieve this.  
Please guide and help.

---

<div class="post-metadata">

**Author:** ![glilienfield](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/glilienfield/32/27534_2.png) [@glilienfield](https://community.neo4j.com/u/glilienfield)\
**Post date:** [May 12, 2025, 11:47am UTC](https://community.neo4j.com/t/ingesting-json-data-into-into-neo4j-and-vector-indexing/73820/2 "2025-05-12T11:47:27Z")

</div>

If you want to use python, you can read and parse the file in python and use the driver to create the nodes and relationships.

If you want to create the graph entirely in cypher, you can use apoc.load.json procedure to load and parse the json and then create the nodes and relationships.

> **[Load JSON - APOC Core Documentation](https://neo4j.com/docs/apoc/current/import/load-json/)**
>
> This section describes procedures that can be used to import JSON data from web APIs or files.

Would you like some help with the cypher?
