Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
objectJsonに入れると、エスケープ文字が自動的に追加されます。
オリジナルを置く
j.put("paif_start", "01/05/2012");
プットを節約するので
{"paif_start":"01\/05\/2012"}
これらのエスケープ文字を削除する方法は?
受信側で、本当にしたい場合は、ただ行うことができます
`myJsonString = myJsonString.replaceAll("\\","");`
ただし、これらのエスケープ文字によって JSON が無効になったり、意味が異なったりすることは決してないことに注意してください。「/」文字は、オプションで JSON の「\」でエスケープできます。