Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

When representing a JSON object that contains slashes in its field name, it is recommended to use backslashes to escape the forward slashes. For example, if a JSON object contains a field name "foo/bar" the representation would be:

{
  "foo\/bar": "value"
}

In this example, the forward slash is escaped with a backslash. When parsing the JSON object, the receiving application should automatically recognize the escaped forward slash and treat it as a part of the field name.