How to get attributes from a post requested via the JSON API?

Keep in mind that WordPress uses Backbonejs as its data model representation in their Javascript API Client.

Since post.fetch() is an async function and returns a promise then you’d have to do your logic/logging after the fetch is complete.

So you write:

post.fetch().then( function( p ) {
   console.log( p );
} );

LINKS:

fetch