provide support to export entities with all its references

Solves #14 
No chance to use that here. The serialization uses proper json_decode() not the odd Drupal wrapper, which uses assoc arrays instead of stdClass.