Implemented a simple native RDF/JSON serializer.

See: http://www.w3.org/TR/rdf-json/#section-serialization