Json Escape Backslash







expected result: parsing should have succeeded but failed: parsing should have failed but succeeded: result undefined, parsing succeeded: result undefined, parsing failed. * (bug 20239) MediaWiki:Imagemaxsize does not contain anymore a. Remove escape of quotes with Newtonsoft. Run the following Python JSON parsing script on valid JSON: import json json You need to escape backslashes inside a Python string literal or use raw-string. To replace a double backslash with a single backslash you should use json. I'm trying to escape JSON data at index time because I can't do it from within the application that is generating the log. I need to know how to escape the JSON values and the CSV values so they're not ambiguous and misinterpreted. Quickly test and debug your regex. Thanks! Please check your inbox to confirm your subscription. Therefore the actual value of your declared string json is "C:\test\sample. Let's assume that you have a JSON String which represents a donut object with properties donut_name, taste_level and price. \r Things to try:\r • Make sure the number of dimension values specified matches the active format for data entities. NET object is using the T:Newtonsoft. JSONLint has no problem with your example either. How can I make sure that literal backslashes in text fields are escaped or encoded when retrieving the data as JSON object?. Then: This value is then escaped with Regex. desktop' --- debian/. The following case has just been brought to my attention (look at the differing number of backslashes): andrew=# select jsonb '"\\u0000"';. JSONKit does not backslash escape / characters, it passes them straight through, which is permitted by RFC 4627. [^1] A character can be:. Ask Question Asked 1 year, [CDATA[tags instead of trying to escape your json. About JSON escape/unescape. x install, and I've already tried encoding with htmlentities before the content is passed to json_encode, but that only captures a small subset of UTF-8 entities. How? Let's suppose you get something like (this is an example take from here): The backslashes, the escape characters, are only for C# to know which double quotes are part of the message. Her programs did a lot of file manipulation, and so she had to do a lot of coding of filenames. So another backslash was added with Escape. string str=JSONConvert. Change notes from older releases. Ive tried many different methods of reading the data in but ive had no luck. The PowerShell escape character is the grave-accent(`) The escape character can be used in three ways: 1) When used at the end of a line, it is a continuation character - so the command will continue on the next line. [email protected]; line: 13, column: 39]”]} I am able to get the request to work when I copy in the description value into the JSON Body (even its entire length ) Any. SerializeObject(object);. This tool escapes special characters in JavaScript Object Notation (JSON) data files. Run the following Python JSON parsing script on valid JSON: import json json You need to escape backslashes inside a Python string literal or use raw-string. Re: Remove backslash from Json Object edubey Feb 25, 2016 3:12 AM ( in response to himanshusinghal ) Java tried to escape your string as " " is part of your string not actual quotes which are used in start and end. The only required parameter. Returns the value encoded in json in appropriate PHP type. 1 Syntax specification defines a syntax to express Linked Data in JSON. 7 and PHP earlier than 5. xml: link to ST_3DClosestPoint from ST_ClosestPoint. 7-8 2012-08-17 Q16 Didn't look what exactly parses styles. Escapes the characters in a String using Json String rules. you receive : { d: "a json string" } the backslash you're seing is good, it's an escaping char, your object don't have backslash inside WorknHardr. However, we know that the backslash character is an escape character in Java String literals as well. The JsonSerializer converts. It is easy for machines to parse and generate. As the world continually becomes "eaten by software" more and more services. Closes #1106. Other parsers can be found at json. Fixing the use of escape_json() is objective, but the choices around the warning are more subtle. ) So a tab becomes the characters '\\' and 't'. 1 === * The installer now includes a check for a data corruption issue with certain versions of libxml2 2. So another backslash was added with Escape. backslash escapes for 2json. JSON strings are escaped with backslashes similar to JavaScript. For current info see RELEASE-NOTES. after escape it should display. Installing. JSON editor inappropriately escapes backslashes during paste operation. Ansible backslash escaping in playbooks. | tr 'ab' '\\x' would be similar, you'd just get b changed to an x. tag with link data. This has to be escaped and then posted using AJAX call. The only difference between Java strings and Json strings is that in Json, forward-slash (/) is escaped. Rate this: Please Sign up or sign in to vote. That is, the escaped character is interpreted as if it was not escaped. Escapes any values it finds into their Json String form. Processing is done locally: no data send to server. The following example shows the JSON representation of an object that describes a person. 1 === * The installer now includes a check for a data corruption issue with certain versions of libxml2 2. That is, it's surrounded with double quotes and escaped. However, we know that the backslash character is an escape character in Java String literals as well. In my case it’s a object which I serialize via newtonsoft json. Exactly eight hexadecimal digits are required. x install, and I've already tried encoding with htmlentities before the content is passed to json_encode, but that only captures a small subset of UTF-8 entities. JSON is a useful data serialization and messaging format. - JSONUtil. Past editions of ECMAScript have included additional syntax and semantics for specifying octal literals and octal escape sequences. 6dev to upgradeable_versions. splunk-enterprise regex json backslash white-space dashboard escape token cli form 6. Properly defined JSON is generated with FOR JSON (unless if it has WITHOUT_ARRAY_WRAPPER option) or JSON_QUERY. If you declare an hstore with duplicate keys, only one will be stored in the hstore and there is no guarantee as to which will be kept: SELECT 'a=>1,a=>2'::hstore; hstore ----- "a"=>"1". the detail here is that I’m using blade inside laravel to build a three view form, so I can go back and forward, I have in between every back and forward button validations and when I go back in the form without reloading the page my json get filled by backslashes. JSONKit does not backslash escape / characters, it passes them straight through, which is permitted by RFC 4627. The solution to avoid this problem, is to use the backslash escape character. Appsettings. JSON is gebaseerd op een subset van de Javascript programmeertaal, standaard ECMA-262 derde editie (december 1999). 5 for details of JSON string representation. When it encounters the input with one backslash, it recognizes a unicode escape, and because it's for u+0000 emits. It is a sequence of zero or more double quoted Unicode characters with backslash escaping. Escapes or unescapes a JavaScript string removing traces of offending characters that could prevent interpretation. > For the moment, maybe I could commit the fix for the non U+0000 case for > escape_json, and we could think some more about detecting and warning about > the problem strings. What does json use reverse backslashes for? Close. parse to parse that JSON string into a JSON object. Syntax STRING_ESCAPE( text , type ) Arguments. Java Unescape Escapes or unescapes a Java string removing traces of offending characters that could prevent compiling. I added a FOURTH one and tried again, now the JSON string shows 4 backslashes inside the request. This is the method that is returning the JSON string with the escape characters:-. A JSON number (numeral) is represented in decimal notation, possibly signed and. It is an extended version of the well-known sys. I have a problem trying to parse a log file with backslashes in it. Escapes or unescapes a JSON string removing traces of offending characters that could prevent interpretation. parse cannot parse some special characters that are , \t, \r and \f. The only difference between Java strings and Json strings is that in Json, forward-slash (/) is escaped. All special characters, such as quote characters, newlines and backslashes will be replaced with their escaped counterparts. I'm trying to escape JSON data at index time because I can't do it from within the application that is generating the log. So in most of the cases. Backspace is replaced with \b, Form feed is replaced with \f, Newline is replaced with , Carriage return is replaced with \r, Tab is replaced with \t, Double quote is replaced with \", Backslash is replaced with \\. It is easy for machines to parse and generate. xml: link to ST_3DClosestPoint from ST_ClosestPoint. The reason is that backslashes are "consumed" by a string. Do not forget to check for latest dependency at maven site. SerializeObject(Object, Type, Formatting, JsonSerializerSettings) Serializes the specified object to a JSON string using a type, formatting and JsonSerializerSettings. ERROR 3141 (22032): Invalid JSON text in argument 1 to function json_unquote: "Invalid escape character in string. From a quick read of the API you don't send any requests directly, but use their plugin to handle all requests indirectly. conf 2012-09-04 12:34 strk * Properly escape imagemagic paren arguments 2012-09-04 11:44 robe. * (bug 20239) MediaWiki:Imagemaxsize does not contain anymore a. Escape and becomes "\\123". pc/01_desktop-path. The encoding mode keyword "json" was added in Chilkat v9. 2017-06-23 06:00 Regina Obe * [r15444] ST_AsX3D handle empty geometries References #3704 for PostGIS 2. If you want to replace a single backslash in Java using replaceAll there are multiple layers of escaping that leads to four backslashes as an argument for replaceAll. 5 for details of JSON string representation. In case you want to escape the $ sign and avoid the interpolation, use the same trick we have done above – prefix it with backslash. There are also assorted JSON-specific functions. It doesn’t show privileges for the user for that database. Split a Large JSON file into Smaller Pieces In the previous post , I have written about how to split a large JSON file into multiple parts, but that was limited to the default behavior of mongoexport , where each line in the output file represents a JSON string. Include Jackson 2 dependency in your application project. Issue decoding UTF-8 escaped characters using READ-JSON when inserting JSON data to a Temp-table JSON. JSONPath expressions always refer to a JSON structure in the same way as XPath expression are used in combination with an XML document. fr for testing, but when I tried the "\\\\d" it told me that one of the backslashes needs to be escaped! - peteb Jun 14 '10 at 10:43. Json Unescape Escapes or unescapes a JSON string removing traces of offending characters that could prevent parsing. xht to upload file extension blacklist * (bug 19287) Workaround for lag on history page in Firefox 3. As you can see here you have to use the double backslash escape sequence because you don't want the SQL parser to perform the standard escape sequence processing but instead you want to pass the literal string containing the escape sequence down to the storage engine for the JSON data type processing. \uxxxx Character with 16-bit hex value xxxx. postgis: Update json-c url 2012-10-05 19:23 robe * doc/reference_measure. This what WCF is returning to a HTTP GET request. +1 for splitting development that way. config, doc/release_notes. CREATE TABLE `config`. Escaping of special characters. ) So a tab becomes the characters '\\' and 't'. json [false]. JSON Validator ( JSON Lint ) is easy to use JSON Validate tool. type Escaping rules that will be applied. If this mode is set, a single backslash instead of double backslashes can be used to insert the JSON object literal, and the backslashes are preserved. printer or text terminal) then any escape character for this device is a control one. 6rc1 (in prep for rc1 tagging) 2018-01-14 15:34 Regina Obe * [r16291] HOWTO_RELEASE, NEWS, ci/debbie/postgis_make. parse to parse that JSON string into a JSON object. I do not know what the appropriate JSON escape sequence should be for such a character, but I. These have been removed from this edition of ECMAScript. JSON is gebaseerd op een subset van de Javascript programmeertaal, standaard ECMA-262 derde editie (december 1999). Emmet will load them on start and. 1, “Special Character Escape Sequences”. When using the built-in JSON parser, single backslashes are included in the resulting string. The previous blog post explained how slices work in Go, using a number of examples to illustrate the mechanism behind their implementation. When it encounters the input with one backslash, it recognizes a unicode escape, and because it's for u+0000 emits. Backspace is replaced with \b, Newline is replaced with \n, Tab is replaced with \t, Carriage return is replaced with \r, Form feed is replaced with \f, Double quote is replaced with \", Backslash is replaced with \\,. This section is non-normative. allow_backslash_escaping_any_character public static final JsonParser. HTML Fun ction. But I can't understand that, when I do. What is JSON. ticket summary component priority type owner status created _changetime _description _reporter 20 Possible for user's to break layout when adding forum posts Support Forums high defect SergeyBiryukov accepted 2013-07-17T21:29:56Z 2019-02-11T01:43:15Z "When a user wraps text in their forum posts with "". Transact-SQL Syntax Conventions. A string in JSON is composed of Unicode characters, with backslash (\) escaping. This what WCF is returning to a HTTP GET request. JSON Formatter. Therefore, we need to double the backslash character when using it to precede any character (including the. The previous blog post explained how slices work in Go, using a number of examples to illustrate the mechanism behind their implementation. pc/01_desktop. 7 and PHP earlier than 5. Escape strings sent in curl data when using application/json. Last Updated on January 26th, 2019 by App Shah Leave a comment. Fetching IMIPINFO is relatively costly operation, but it is cached on the server after first evaluation [*] 2011-05-27 IMAP Service - Connector - XLIST - new tag \Virtual - (\Noselect tag does not imply virtual folder in all cases) [*] 2011-05-27 IMAP Service - Connector - XLIST - no folderid for \Noselect folders is returned, no duplicate. A backtick-quoted string may span several lines and you are not required to escape regular quote characters, only backticks. There is no need to backslash-escape forward slashes in JSON-LD. * Moved `fixDisplayMath` from Docx writer to `Writer. ticket summary component priority type owner status created _changetime _description _reporter 20 Possible for user's to break layout when adding forum posts Support Forums high defect SergeyBiryukov accepted 2013-07-17T21:29:56Z 2019-02-11T01:43:15Z "When a user wraps text in their forum posts with "". Skip to content. Deals correctly with quotes and control-chars (tab, backslash, cr, ff, etc. 3 replies Last post Apr 07, 2015 10:44 PM by Zhi Lv - MSFT ‹ Previous Thread | Next. Single Quote: When a string-expr value contains a single quote as a literal character, InterSystems SQL requires that this character must be escaped by doubling it as two single quote characters ( ''. JSON Data Type – STRING In JSON, the string datatype has the following properties. YAML version 1. I have a problem trying to parse a log file with backslashes in it. The escape() function encodes a string. A submitted Slash Command will cause a payload of data to be sent from Slack to an app, allowing the app to respond in whatever way it wants. Java Escape Escapes or unescapes a Java string removing traces of offending characters that could prevent compiling. JSON Escaper - an extension for Visual Studio Code. JSONLint has no problem with your example either. MySQL recognizes the escape sequences shown in Table 9. Installing. Escape or Unescape Javascript string and files. json [""] y_array_empty. When using the built-in JSON parser, single backslashes are included in the resulting string. The name is jsondata and the value is a JSON String. org Json Escape Escapes or unescapes a JSON string removing traces of offending characters that could prevent parsing. Note that since backslash is. My problem is, that Laravel returns escaped data as soon as unicode characters (like german umlauts) will be used. If the source data contains special characters, the FOR JSON clause escapes them in the JSON output with \, as shown in the following table. To decode strings encoded with escape, use the JavaScript function unescape. JavaScript String Escape / Unescape. ticket summary component priority type owner status created _changetime _description _reporter 20 Possible for user's to break layout when adding forum posts Support Forums high defect SergeyBiryukov accepted 2013-07-17T21:29:56Z 2019-02-11T01:43:15Z "When a user wraps text in their forum posts with "". It is an extended version of the well-known sys. Json files can be tricky. For example, if you wanted String A to have the value:. Are you absolutely sure that your string actually contains those characters and you aren't just seeing them through Visual Studio? By default, Visual Studio will include those characters '\' to indicate that the character that follows has been escaped so that you could actually use double-quotes within a string. The callout response, as received, parses as expected. JSON is the best alternative to XML JSON stores values in key/value pair format. Backspace is replaced with \b, Newline is replaced with , Tab is replaced with \t, Carriage return is replaced with \r, Form feed is replaced with \f, Double quote is replaced with \", Backslash is replaced with \\,. For example, to use a " (double quote) within a string, you'll need to escape it. It doesn’t show privileges for the user for that database. escapes to allow inclusion of backslashes, quotes and. Since you're using C#, it displays the string with the escape characters you would need to include to type that value as a string literal in your C# code. When you escape the quotes like that you’re ending up with: "I said, "Hello"" And that’s not valid JSON, so you will need to escape the quotes and the backslashes:. Escape and becomes "\\123". JavaScript Object Notation is an open standard format that uses human-readable text to transmit data objects consisting of attribute-value pairs. If the first digit following the backslash is a 0, it's an octal escape. More details. The excellent jQuery plugin JSON Parser can help you to deal with JSON. This means you're free to copy and share these comics (but not to sell them). When you look at any string in the debugger, it shows them with appropriate escape characters: "\n", "\t" and "\\" for newline, tab and a single backslash respectively. Escapes or unescapes a JavaScript string removing traces of offending characters that could prevent interpretation. HTML Fun ction. You can also remove the serializer. I have tried a number of escape options using the gsub() method although without any luck. For current info see RELEASE-NOTES. What are Slash Commands? Slash Commands are initiated from the message box in Slack, but they aren't messages. World's simplest online string and text slash remover tool. This escaping occurs both in the names of properties and in their valu. Perhaps the most obvious example is the package. As you can see here you have to use the double backslash escape sequence because you don't want the SQL parser to perform the standard escape sequence processing but instead you want to pass the literal string containing the escape sequence down to the storage engine for the JSON data type processing. In reStructuredText we use the backslash, commonly used as an escaping character in other domains. Backspace is replaced with \b, Newline is replaced with \n, Tab is replaced with \t, Carriage return is replaced with \r, Form feed is replaced with \f, Double quote is replaced with \", Backslash is replaced with \\,. Only users with topic management privileges can see it. Now lets we perform our first encoding example with Python. JSON uses a leading slash character for escaping. I need to know how to escape the JSON values and the CSV values so they're not ambiguous and misinterpreted. They can still be explicitly + overridden in LocalSettings. Map obj = (Map)Json. To replace a double backslash with a single backslash you should use json. The escaped quotes are interpreted by your shell (probably bash), not by curl itself or by your remote service. NET objects into their JSON equivalent and back again by mapping the. JSON is gebaseerd op een subset van de Javascript programmeertaal, standaard ECMA-262 derde editie (december 1999). I don't know what escape character I should be using for the JSON values then what escape characters or formatting to use in the CSV layer. It is a drop-in replacement for aeson's \"encode\" function, producing JSON-ByteStrings for human readers. json ["a"] y_array_false. XML and Raw are suitable only for output. This is the method that is returning the JSON string with the escape characters:-. JsonSerializer. The JSON-LD 1. text • Make sure to escape special characters • b. The only difference between Java strings and Json strings is that in Json, forward-slash (/) is escaped. 0: Distribution. For example, the following command specifies that the escape character is the backslash, and then uses that escape character to search for ‘%’ as a literal (without the escape character, the ‘%’ would be treated as a wildcard):. By following shared conventions, you can increase productivity, take advantage of generalized tooling, and focus on what matters: your application. Most commonly, escape characters are used to solve the problem of using special characters inside a string declaration. If you remove the trailing backslash, ConvertTo-Json executes correctly. Its external text form is a string wrapped in square brackets with commas separating the values. Simply put, we need to employ a. Escapes or unescapes a JSON string removing traces of offending characters that could prevent interpretation. Appsettings. While I was working on the Timeline card JSON outputs, I remembered an interesting rule for escaping forward slashes in JSON. I'm very new to Splunk so I'm kind of floundering here. Was this blog post helpful for you? Support my blog and donate! My blog is open to the public and will always be freely available. Escapes or unescapes an HTML file removing traces of offending characters that could be wrongfully interpreted as markup. Escape and becomes "\\123". json [false]. So, CR is escaped using the standard escape character of JSON strings, backslash. This section is non-normative. Hence the characters in the result are escaped wherever needed. The syntax is designed to easily integrate into deployed systems that already use JSON, and provides a smooth upgrade path from JSON to JSON-LD. “Illegal unquoted character ((CTRL-CHAR, code 13)): has to be escaped using backslash to be included in string value at [Source: org. We can also stream JSON encodings directly to os. Run the following Python JSON parsing script on valid JSON: import json json You need to escape backslashes inside a Python string literal or use raw-string. Just load your JSON and it will automatically get converted to a string. In text mode, COPY will be simply defeated by the presence of a backslash in the JSON. A note of caution: If you are wondering why json_encode() encodes your PHP array as a JSON object instead of a JSON array, you might want to double check your array keys because json_encode() assumes that you array is an object if your keys are not sequential. The string escape handling. Otherwise any application reading it will think that your double quote marks the end of the string, and cut it short. json file used by npm and yarn, but there are many others, including CloudFormation (originally JSON only, but now supports YAML as well) and composer (PHP). The reason for the use of the back quote instead of the backslash is the direct result of the decision in the first version of DOS to use the backslash character to separate the different parts of a file path, for example C:\Windows\Program Files. Parsing JSON is a Minefield 💣 This Bash parser relies on a regex to find the control characters, which MUST be backslash-escaped according to RFC 8259. If we assume that what yo posted is a JavaScript string, that double backslash will resolve into an actual backslash (since the backslash is usually used as an escape character in JS strings). About JSON escape/unescape. Formats your JSON string/file with choice 6 indentation levels: 2 spaces, 3 spaces, 4 spaces, compact mode, JavaScript escaped and tab separated; Creates a tree representation of the JSON objects for easy navigation. Currently the value supported is 'json'. JSON Basics. According to the JSON spec, the forward-slash character also must be escaped with a backslash. For example, n by itself is simply a letter, but when you precede it with a backslash, it becomes , which is the newline character. badEvent"Name) and try to save contents of scheduler with scheduler. The JSON output from different Server APIs can range from simple to highly nested and complex. pc/01_desktop-path. At Khan Academy, we recently took the time to go through our 200+ Jinja2 templates and turn on autoescape to reduce the likelihood of falling prey to an XSS attack. This has to be escaped and then posted using AJAX call. sJson = Replace(sJson, “%1″, sName). The default JSON output that is provide by Gson is a compact JSON format. It's showing the backslash because you're also escaping the backslash. A native JSON data type; A set of built-in functions to manipulate values of the JSON type; Despite being added rather recently (in MySQL 5. This what WCF is returning to a HTTP GET request. JSON and Hjson use the characters {}[],: as punctuators to define the structure of the data. net JavaScript also uses backslash as an escape character. I found this example using Newtonsoft Json. the detail here is that I’m using blade inside laravel to build a three view form, so I can go back and forward, I have in between every back and forward button validations and when I go back in the form without reloading the page my json get filled by backslashes. It is easy for humans to read and write. type Escaping rules that will be applied. For example, c:\windows is an example of the backslash being used. JSON result of replace pipe is : "test with literal backslash \" Please note that when a text field contains the literal text " " or "\t", this will be translated to newline and tab in JSON. But the JSON string of the variable a is actually “backslash\\”. The following characters must be escaped to handle issues with newlines using backslashes, whether in quotes or not: \ <- escape as \\ \r \f notes / [ ] are reserved by the json line grammar, if such values are found in your json, they will be quoted in double quotes. Hello, I am finding that if any fields in a document returned by a Solr query (wt=json to get a JSON response) contain backslash. Deserialize throw bug. HTML Escape / Unescape. JsonSerializer. __group__ ticket summary component version type severity owner status created _changetime _description _reporter Demuxers 4 DVDNav current time Demuxers master git defect normal new 2005-05-05T21:12:45+02:00 2019-08-11T04:11:47+02:00 "DVDNav module calculates the current time by taking the total time and then uses the block position to approximate the current playing time. We transmit JSON over the wire, we store JSON as JSON, and we index the JSON tree allowing queries on the full JSON document. Unlike other data formats such as XML, JSON can be used in JavaScript without big efforts. JSON parsing fails if single quotes are used? If this is your first visit, you may have to register before you can post. Escaping backslashes is required. json is the file location. however the output returns as shown in the attached screen shot. If the number following the backslash is N (in decimal), and. So in most of the cases. JSON (JavaScript Object Notation) is a lightweight data-interchange format that is easy for humans to read and write, and for machines to parse and generate. In JSON they're specifying the solidus(/) need to be escaped with the escape character (\). In addition to standard_conforming_strings, the configuration parameters escape_string_warning and backslash_quote govern treatment of backslashes in string constants. It is an extended version of the well-known sys. Another essential PHP function that comes in handy when passing data to JavaScript is addslashes which will add a backslash before: backslashes, single- and double-quotes. Of course, it never hurts to escape any character. mk: minor edits to HOWTO_RELEASE Add 2. Then: This value is then escaped with Regex. The following case has just been brought to my attention (look at the differing number of backslashes): andrew=# select jsonb '"\\u0000"';. But escape characters used in programming (such as the backslash, "\") are graphic, hence are not control. Ask Question Asked 1 year, You should also test that your code correctly handles other backslash escape sequences like \b, \f, , \r,. The escape() function encodes a string. A JSON value enclosed in will behave the same way on both versions - the parentheses indicate "the stuff in here is Caché ObjectScript, not JSON" - and therefore should be used for literal values containing control characters, double quotes, and backslashes. This has to be escaped and then posted using AJAX call. All special characters, such as quote characters, newlines and backslashes will be replaced with their escaped counterparts. The string will be chopped to "We are the so-called ". JSON Data Set Sample. I used Json to generate the JSON so the strings are escaped properly. Escaping Using Backslash. elasticsearch. 1 Syntax specification defines a syntax to express Linked Data in JSON. For example, suppose you have the following JSON in a file named escape. Because there is more than one way to express Linked Data. The callout response, as received, parses as expected. What does json use reverse backslashes for?. This tool escapes special characters in JavaScript Object Notation (JSON) data files. In tutorial How To Declare Variables And Types, we learned the syntax to create and assign an immutable String variable. Then: This value is then escaped with Regex. But it does not escape other characters, since this is not required for producing valid JSON documents. Well in order to escape a character we have to know which character we have to escape and why we are escaping a character.