Hi. If the 7.x-1.x-dev version of the module is installed, i'm not seeing the entry-fields for mappings when i open the feed node for editing. Also all the debugging settings are unavailable. See the attached screenshot.

The -beta2 version is ok, so this is a regression.

This is a fresh Drupal 7.8 -installation on Ubuntu, i'm using drush pm-download --select feeds_jsonpath_parser and also clearing the cache after installation (if it makes a difference). Like said, the beta2 is ok, this problem only exists in the development release.

Comments

charlie-s’s picture

I'm seeing this on 6.x-1-beta05. The identical git repo on another host (mediatemple) has this option, so I wonder if there's a particular PHP extension or something that's not available...

Edit: Looked into this and the environments don't look any different. Adding a new Feed importer attached to a new content type and then creating a node of this content type givs me the "JSONPath Parser Settings" as expected. To make matters worse, when I click "Import" on the node that does not show the parser settings I get a message that there is "no new content", but when I run cron.php there are many new nodes created from this feed.

dw235’s picture

StatusFileSize
new16.52 KB

I'm experiencing this too on 7.23. I've tried both -beta2 and the lastest -dev versions. The only message I receive is 'FeedsJSONPathParser: No mappings were defined.' (see attached screen capture)

I'm unable to set a parser setting. Did I miss something?

Thank you.

johnnydarkko’s picture

I see exactly the same as dw235 sees in #2 and the documentation is pretty lacking to know clearly what to do next.
No resolution was found in #1155182: Specifying Mappings either.
If anyone has any insight or know where to find the instructions on how to set the Feeds JSON Path Parser mappings, that would help immensely.

johnnydarkko’s picture

aha! found this:
Community Documentation: Feeds JSONPath Parser
https://drupal.org/node/1953688
hope this helps anyone else trying to find the docs...
This still appears to be incomplete, though...

ctully12’s picture

I found the documentation to be slightly confusing. You need to set your mapping before you'll be able to see "context" /"setting"

timtk’s picture

Where do you go to map the settings?

newtoid’s picture

You need to have the fields you are importing from the feed in a content type first, that's a given

Select the content type you want to map to from the "Bundle" option under Node Processor Settings

Then under "Mapping" the source of each field needs to be selected as "jsonpath_parser" and the target one of the fields from your content type. They must be added one by one.

Once you have added all the fields you then need to open the JSONPath parser settings and add your context (I used $.[] for the ones i did), below the context field you will also see the list of fields you mapped - add the JSONPath expression for each field you added, remembering they are case sensitive. I checked the API feed I was having to work with here http://jsonpath.curiousconcept.com/#jsonpath because the documentation i was given had quite a lot of errors.

Anyway when you've done all that you should be able to import something. Good luck!

twistor’s picture

Category: Bug report » Support request
Issue summary: View changes
Status: Active » Fixed
Issue tags: -User interface, -json, -Feeds, -feeds mapper

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.