Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6840441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:50:42+00:00 2026-05-26T23:50:42+00:00

I want to get data from thisarray of json object : [ { outgoing_relationships:

  • 0

I want to get data from thisarray of json object :

[
    {
        "outgoing_relationships": "http://myserver:7474/db/data/node/4/relationships/out",
        "data": {
            "family": "3",
            "batch": "/var/www/utils/batches/d32740d8-b4ad-49c7-8ec8-0d54fcb7d239.resync",
            "name": "rahul",
            "command": "add",
            "type": "document"
        },
        "traverse": "http://myserver:7474/db/data/node/4/traverse/{returnType}",
        "all_typed_relationships": "http://myserver:7474/db/data/node/4/relationships/all/{-list|&|types}",
        "property": "http://myserver:7474/db/data/node/4/properties/{key}",
        "self": "http://myserver:7474/db/data/node/4",
        "properties": "http://myserver:7474/db/data/node/4/properties",
        "outgoing_typed_relationships": "http://myserver:7474/db/data/node/4/relationships/out/{-list|&|types}",
        "incoming_relationships": "http://myserver:7474/db/data/node/4/relationships/in",
        "extensions": {},
        "create_relationship": "http://myserver:7474/db/data/node/4/relationships",
        "paged_traverse": "http://myserver:7474/db/data/node/4/paged/traverse/{returnType}{?pageSize,leaseTime}",
        "all_relationships": "http://myserver:7474/db/data/node/4/relationships/all",
        "incoming_typed_relationships": "http://myserver:7474/db/data/node/4/relationships/in/{-list|&|types}"
    }
]

what i tried is :

  def messages=[];
  for ( i in families) {
      messages?.add(i);
  }

how i can get familes.data.name in message array .

Here is what i tried :

def messages=[];
  for ( i in families) {
    def map = new groovy.json.JsonSlurper().parseText(i);
     def msg=map*.data.name;
   messages?.add(i);
  }
  return messages;

and get this error :

 javax.script.ScriptException: groovy.lang.MissingMethodException: No signature of method: groovy.json.JsonSlurper.parseText() is applicable for argument types: (com.tinkerpop.blueprints.pgm.impls.neo4j.Neo4jVertex) values: [v[4]]\nPossible solutions: parseText(java.lang.String), parse(java.io.Reader)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T23:50:43+00:00Added an answer on May 26, 2026 at 11:50 pm

    Or use Groovy’s native JSON parsing:

    def families = new groovy.json.JsonSlurper().parseText( jsonAsString )
    def messages = families*.data.name
    

    Since you edited the question to give us the information we needed, you can try:

    def messages=[];
    families.each { i ->
      def map = new groovy.json.JsonSlurper().parseText( i.toString() )
      messages.addAll( map*.data.name )
    }
    messages
    

    Though it should be said that the toString() method in com.tinkerpop.blueprints.pgm.impls.neo4j.Neo4jVertex makes no guarantees to be valid JSON… You should probably be using the getProperty( name ) function of Neo4jVertex rather than relying on a side-effect of toString()

    What are you doing to generate the first bit of text (which you state is JSON and make no mention of how it’s created)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using http://lite.facebook.com And i want to get some data from my account.
I want to get data from this page: http://www.canadapost.ca/cpotools/apps/track/personal/findByTrackNumber?trackingNumber=0656887000494793 But that page forwards to:
I have one problem , I want to get some data from XML file
What I want to do is get the data from two different tables (table1
I want to get data from a database of my site. In the setting
I want to get data from a text file to a listview. A sample
I want to get data from my data access layer into my business layer,
I want to get data from SharePoint List using CAML and filtered by Title
I want to get data from the database (MySQL) by JPA, I want it
How can I get data from these related entities. I want to get these

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.