{"vid":"82","uid":"1","title":"Drupal JSON Node API","log":"","status":"1","comment":"2","promote":"1","sticky":"0","nid":"83","type":"blog","language":"und","created":"1436455446","changed":"1436456636","tnid":"0","translate":"0","revision_timestamp":"1436456635","revision_uid":"1","body":{"und":[{"value":"

To help with a content migration project I have recently made a module that exposes all published node types, node IDs and the nodes via a very simple JSON API. <\/p>

There are only 3 custom functions needed to give the requesting user a list of the types that are available, the node IDs of any given type and then finally the nodes by ID. <\/p>

I have set this up on here as an example. <\/p>

Node Types<\/a> <\/p>

NIDs of type blog<\/a> <\/p>

This node as JSON<\/a> <\/p>

This was just intended to be used locally when importing content to a different site with another custom module I made for easy content migration but may be of use to someone so I made a Drupal 7 version as well, they are both available for download here: Toms GitHub:\/modules<\/a>. <\/p>

My next post will probably be about the module I have made for easily importing content by type with Drush. <\/p>","summary":"","format":"rich_text","safe_value":"

To help with a content migration project I have recently made a module that exposes all published node types, node IDs and the nodes via a very simple JSON API.\u00a0<\/p>

There are only 3 custom functions needed to give the requesting user a list of the types that are available, the node IDs of any given type and then finally the nodes by ID.\u00a0<\/p>

I have set this up on here as an example.\u00a0<\/p>

Node Types<\/a>\u00a0<\/p>

NIDs of type blog<\/a>\u00a0<\/p>

This node as JSON<\/a>\u00a0<\/p>

This was just intended to be used locally when importing content to a different site with another custom module I made for easy content migration but may be of use to someone so I made a Drupal 7 version as well, they are both available for download here: Toms GitHub:\/modules<\/a>.\u00a0<\/p>

My next post will probably be about the module I have made for easily importing content by type with Drush.\u00a0<\/p>","safe_summary":""}]},"field_image":{"und":[{"fid":"84","uid":"1","filename":"Drupal_JSON_Node_API.png","uri":"public:\/\/Drupal_JSON_Node_API.png","filemime":"image\/png","filesize":"91272","status":"1","timestamp":"1436455446","rdf_mapping":[],"alt":"Drupal JSON Node API","title":"Drupal JSON Node API","width":"1489","height":"960"}]},"field_tags":{"und":[{"tid":"15"},{"tid":"16"},{"tid":"22"}]},"rdf_mapping":{"rdftype":["sioc:Item","foaf:Document"],"title":{"predicates":["dc:title"]},"created":{"predicates":["dc:date","dc:created"],"datatype":"xsd:dateTime","callback":"date_iso8601"},"changed":{"predicates":["dc:modified"],"datatype":"xsd:dateTime","callback":"date_iso8601"},"body":{"predicates":["content:encoded"]},"uid":{"predicates":["sioc:has_creator"],"type":"rel"},"name":{"predicates":["foaf:name"]},"comment_count":{"predicates":["sioc:num_replies"],"datatype":"xsd:integer"},"last_activity":{"predicates":["sioc:last_activity_date"],"datatype":"xsd:dateTime","callback":"date_iso8601"}},"cid":"0","last_comment_timestamp":"1436455447","last_comment_name":null,"last_comment_uid":"1","comment_count":"0","name":"Tom.Gould","picture":"0","data":"b:0;","drupal_core_version":7}