# ----------------------------------------------------------------------------------
-# OpenSRF JSON gateway
+# XXX Note, it's important to explicitly set the JSON encoding style
+# (OSRFGatewayLegacyJSON), since the default encoding style will likely change
+# with OpenSRF 1.0
+# ----------------------------------------------------------------------------------
+# OpenSRF JSON legacy gateway
# ----------------------------------------------------------------------------------
<Location /gateway>
SetHandler osrf_json_gateway_module
+ OSRFGatewayLegacyJSON "true"
+ allow from all
+</Location>
+# ----------------------------------------------------------------------------------
+# New-style OpenSRF JSON gateway
+# ----------------------------------------------------------------------------------
+<Location /osrf-gateway-v1>
+ SetHandler osrf_json_gateway_module
OSRFGatewayLegacyJSON "false"
allow from all
</Location>