Author: dajobe
Date: Fri Jan 18 07:08:34 2008
New Revision: 13618

URL: http://svn.librdf.org/view?rev=3D13618&view=3Drev
Log:
(raptor_init_serializer_json): Set JSON mime type to
application/json.  Change serializer name 'json' to resource-centric
one and add alias 'json-r'.

Modified:
    raptor/trunk/src/raptor_serialize_json.c

Modified: raptor/trunk/src/raptor_serialize_json.c
URL: http://svn.librdf.org/view/raptor/trunk/src/raptor_serialize_json.c?re=
v=3D13618&r1=3D13617&r2=3D13618&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- raptor/trunk/src/raptor_serialize_json.c (original)
+++ raptor/trunk/src/raptor_serialize_json.c Fri Jan 18 07:08:34 2008
@@ -572,18 +572,18 @@
   int rc;
   =

   rc=3Draptor_serializer_register_factory("json-t",
-                                        "RDF JSON Triples", =

-                                        "text/json",
+                                        "RDF/JSON Triples", =

+                                        "application/json",
                                         NULL,
                                         NULL,
                                         &raptor_json_triples_serializer_re=
gister_factory);
   if(rc)
     return rc;
   =

-  return raptor_serializer_register_factory("json-r",
-                                            "RDF JSON Resource-Centric", =

-                                            "text/json",
-                                            "json",
+  return raptor_serializer_register_factory("json",
+                                            "RDF/JSON Resource-Centric", =

+                                            "application/json",
+                                            "json-r",
                                             (const unsigned char *)"http:/=
/n2.talis.com/wiki/RDF_JSON_Specification",
                                             &raptor_json_resource_serializ=
er_register_factory);
 }


_______________________________________________
redland-commits mailing list
[email protected]
http://lists.librdf.org/mailman/listinfo/redland-commits

Reply via email to