Graph API and serializer for the JSON Graph Spec