Questions tagged [json]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
10 views

AJAX In Cart Page Returning Odd HTML Instead Of Data Object

EE 5.2.6 This is a very strange problem. I have a class that I'm using to query the Amazon Product Advertising API and return data via AJAX. I have category pages and product pages where the jQuery ...
0
votes
1answer
7 views

Tagdata Fetch Params Not Accepting JSON String

EE 5.2.4 I'm developing a feature for custom analytics. Certain activities are saved as channel entries in order to be presented in a dashboard later. I have the first part of the feature working. ...
0
votes
2answers
25 views

Json output is not right

I have in EE a json file that pull the file name (file_name@2x.jpg) from de database where the name is ok but the output is file_name%402x.jpg how can I fix that? {exp:channel:entries channel="json" ...
0
votes
1answer
25 views

Automatically creating an alphanumeric number for each new entry

I have setup a JSON feed to allow single sign-on to another system. Currently the entry_id and email are used as part of the URL string to access the 3rd party system, but this number could be guessed....
1
vote
2answers
148 views

how do I output am EE html template as a json file [duplicate]

how do I output am EE html template as a json file so it validates? Error:Invalid media type, expecting application/json. I have tried enabling php to my template and adding the following code after ...
1
vote
1answer
45 views

JSON_Encode add-on

Is there an add-on for JSON_Encode for EE3? We used one before in our previous EE2.5 version to convert EE channel entries for our mobile site.
0
votes
2answers
36 views

Output of JSON addon is blank when embedded in another template

When using this json addon in a template, it outputs just fine. However, when I try to call that template using embed into another template, it ends up as '[]' My setup is similar to this: ...
1
vote
1answer
80 views

Accessing EE data via iOS swift

Good afternoon, I have a bit of a noob question here. I'm learning swift, and I'd like to write an application to access (read only at first) data from my EE3 site. All the good data I'm hoping to ...
0
votes
1answer
52 views

Channel Images tag pair breaks page parsing

I am using channel image 5.4.2 and as per docs I trying simple template like": <html> <head> <meta charset="UTF-8"> <title>Document</title> </head> <...
0
votes
1answer
32 views

Can a custom field be populated by external JSON?

I'm building the marketing portion of a larger system, where a catalog of products is in a separate database. I need a custom select field that represents the products in the catalog, so I can relate ...
1
vote
1answer
103 views

PHP interfering with entry field embed rendering?

(See my 'solution' at bottom of this question.) Disclaimer: I'm new to EE; I inherited a system and am looking to be able to extract entries. I'm trying to create a template to extract entries in ...
0
votes
1answer
89 views

Cartthrob - Presales questions

I have just sent this to the CT team but am open to as much advice as possible so thought id put it out here too. Is this type of Q even allowed on here? Q: I am just reading the docs trying to ...
0
votes
0answers
38 views

Simple plugin to read json?

I've been using Phil Sturgeon's Rest to read in JSON data from a url but it looks like it's starting to fail, as it hasn't been updated for a while. I just want to pull in a JSON feed and display the ...
0
votes
1answer
39 views

Can the annotation class be deactivated?

I've just upgraded my site from 2.8.1 to 2.9.3 and now certain bits of it are failing. It seems that a new "Template Runtime Annotation Class" introduced in 2.9.0 is randomly dumping comment markers ...
0
votes
1answer
49 views

Sending JSON from Plugin to template in a redirect?

I have a plugin that loops through some code and builds an array of results then redirects the user to a results page. How can I pass the results to the redirected page without using the URL segment? ...
0
votes
2answers
207 views

parsing decoded JSON array to template

I made my first plugin I don't deal allot with variable and parsing. it was a JSON data to pars to a template. the problem is when I decode the JSON to an array Then I use parse the variables to the ...
0
votes
1answer
1k views

jQuery Chained Select & JSON

I am using a jQuery Chained Select Plugin. But getting stuck loading the data dynamically to select options from my Expression Engine template. Seems pulling the value from the JSON url is causing ...
0
votes
1answer
205 views

AJAX add to cart data.success?

I am using Store 2 as my e-commerce module, with the AJAX Form plugin to submit products to the cart. My question is: Is there a way to detect if the item was added successfully and update the CSRF ...
0
votes
1answer
1k views

JSON Output encoding issue with accented characters and apostrophes

I have created a JS template with this code to output GeoJSON for our Google Maps; { "type": "FeatureCollection", "features": [ {exp:channel:entries channel="places" } { ...
0
votes
1answer
78 views

Output to JSON & save

I've got a directory of locations in a channel, 4500 of them. I'm using the Google Maps addon but given how many locations we're showing, the performance is terrible. Right now we're outputting the ...
0
votes
1answer
254 views

How to use JSON in templates?

Some of my templates outputs JSON string, which was designed to be consumed by the frontend's JS. However, I also have the need to consume this JSON within my templates. Is there an add-on that I can ...
0
votes
1answer
89 views

JSON: export file from template with a JSON extension

I'm using JSON from Rob Sanchez, it's working fine. The template create a file, but what is the solution for the template save the file with a json extension instead of .html or .js ??
2
votes
1answer
763 views

Ajax Request from Template

I am trying to return json from a module method. Very simple example at this point. public function mealDates() { echo "{\"foo\" : \"bar\"}"; } From the template $.ajax({ //request dates ...
1
vote
1answer
621 views

Custom event listeners with Google Maps For ExpressionEngine field type

I need to add a custom event listener (to trigger a modal window) to a Google Map that is generated and managed using Google Maps for ExpressionEngine. To this end I'd like to output my own Javascript ...
0
votes
1answer
147 views

Form Submissions just return JSON [duplicate]

This is on EE 2.7.2. I have just moved a site to a new server. The site was working perfectly before hand, but now that it was migrated all the backend form submissions only return JSON. Some examples:...
1
vote
1answer
148 views

Google Maps for EE, map syles and JSON

I used the google map styling wizard to generate this JSON frag. [ { "featureType": "road.highway", "stylers": [ { "visibility": "on" } ] },{ "featureType": "road.local", "stylers": [ { "visibility": ...
2
votes
1answer
156 views

Freeform Entries for single use

I've built a pretty standard-fare Freeform contact-form, but have spiced things up a bit. The entry_id from the JSON-response is used to fetch someone's name and e-mail, which I run through an ...
4
votes
1answer
181 views

Alternative to MSM?

We're running several big sites on a MSM install, but we're finding it's becoming increasingly difficult to upgrade one site without breaking another. It's just become a tangled mess actually and we'...
1
vote
1answer
96 views

Safecracker with JSON and MX Notify

I am having a bit of a issue when it comes to using MXNotify module and submitting a form with safecracker. What's happening is if all fields are correct, it will save the post, and send the email, ...
0
votes
3answers
124 views

Passing JSON to plugin

RE: Parsing JSON in EE tag Can anyone help out here? It seems that since EE uses { and } that it interperets JSON as an EE tag. I need to pass JSON to a plugin, how is that possible?
1
vote
1answer
124 views

Comment form json? [duplicate]

Just out of curiosity, is it possible to have a native comment-form return json instead of redirecting? Thanks! Steven