You could make a view of your nodes then use
Views DatasourceViews Datasource
Views Datasource is a set of plugins for Drupal Views for rendering content in a number of shareable, reusable formats based on XML, JSON and XHTML.
For how to use, see the accepted answer to this Views JSON output