This stub here really needs to be filled out http://drupal.org/node/1152160

I'd like to import an external JSON file and am having difficulty figuring out how to import it. With HTML, I'd just download the whole site, but in this case, I just want the metadata. The raw files are much too big to mirror.

Any direction on how to do this?

Comments

mikgreen’s picture

Agreed. Some JSON migration examples would be great.

I'm not sure if json migration support is even complete!?
When comparing to plugins/sources/xml.inc, it seems that json.inc is missing FieldMapping and Migration classes extensions. I guess you have to implement them yourself depending on your json data structure.

Since I'm importing from Drupal itself, using Services module, I have a choise to switch to XML import which has better docs.

mikeryan’s picture

Assigned: Unassigned » mikeryan
Status: Active » Fixed

At some point since this issue was opened, twom added a basic example to http://drupal.org/node/1152160 - I've now edited the page and added a more advanced example.

Note that the existing JSON support won't handle big files well - I've opened #1789346: Handle big JSON files to address that.

mgifford’s picture

Thanks.. Documentation is hard to find time for.

Status: Fixed » Closed (fixed)

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