Query to get Array Values | Community
Skip to main content
October 16, 2015
Solved

Query to get Array Values

  • October 16, 2015
  • 2 replies
  • 1042 views

Hi 

Can anybody gimme  query to get array values using querybuilder api i am typing this in browser 

for example i tried this

http://SERVERNAME:PORT/crx/explorer/repository/crx.default/content/dam/cupp/publisher276627/500600973/2013/416279098/articles/101097155.xml/jcr:content/metadata/name:articlePageRange and i see just one number but there is a list of page numbers here

or this

/bin/querybuilder.json?path=/content/dam/cupp/publisher276627/500600973/2013/416279098/articles/101097155.xml/jcr%3acontent/metadata/name:articlePageRange&type=java.lang.String[]

Am i doing something wrong..? please help i am new to this tool

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by JustinEd3

Hi Kalyan,

If you know the path of the node/property you want, there's no need to query for it. You already know the answer to your query :)

http://SERVERNAME:PORT/content/dam/cupp/publisher276627/500600973/2013/416279098/articles/101097155.xml/jcr:content/metadata/name:articlePageRange.json will return a JSON object with *just* this property in it as an array.

I think this is what you're looking for.

Regards,

Justin

2 replies

October 16, 2015

Yes you were right 

i should lose /crx/explorer/repository/crx.default from the url and it worked thanks so much for your help

JustinEd3Adobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

Hi Kalyan,

If you know the path of the node/property you want, there's no need to query for it. You already know the answer to your query :)

http://SERVERNAME:PORT/content/dam/cupp/publisher276627/500600973/2013/416279098/articles/101097155.xml/jcr:content/metadata/name:articlePageRange.json will return a JSON object with *just* this property in it as an array.

I think this is what you're looking for.

Regards,

Justin