Skip Navigation

[Resolved] Views Template and JSON

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 8.27 hours from now. Thank you for your understanding.

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 4 years, 11 months ago.

Assigned support staff: Luo Yang.

Author
Posts
#448810

Hi!

I would like to know whether it is possible with the Views and Javascript to do GET query and receive an answer in the JSON format:

{
objectType: "Person"
name:[
"Andrew Downes",
"Andy Downes",
"Garemoko"
],
mbox:[
"mailto:andrew.downes@tincanapi.com",
"mailto:andrew.downes@rusticisoftware.com",
] account:[
{
homePage: "<em><u>hidden link</u></em>",
name: "mrdownes"
},
{
homePage: "<em><u>hidden link</u></em>",
name: "garemoko"
}
] }

Then make parsing a string and display it in the html.

#449017

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

Dear Oleg,

There isn't such a feature within Views plugin, The content template of Views plugin only works in the post content area, it can not work as JSON response (Without hearder area, footer area and other HTML codes).

It needs custom codes, I suggest you contact our certified partners for it:
https://toolset.com/consultant/