いつもお世話になります。
C#, Windows7, VisualStudio2013 Express, .NET4.5の組み合わせでFormアプリケーションを作っています。
JSONの取得について扱えない文字があって困っています。
using System;
using System.Collections.Generic;
using System.Runtime.Serialization.Json;
using System.Text;
using System.Text.RegularExpressions;
using System.Xml;
namespace JSON {
partial class JSON {
public void JSON2operation(string jsontext){
XmlDictionaryReader xmlReader = JsonReaderWriterFactory.CreateJsonReader(Encoding.UTF8.GetBytes(jsontext), XmlDictionaryReaderQuotas.Max);
}
}
}
という処理をしています。
ここで、jsontextの内容が
{"item":"万年筆(チタン)"}
のように全角のカッコを含む場合、xmlReaderの値が万年筆までしかとれません。
jsontextとして使えない文字には、全角の()など複数あるそうです。
(1)jsontextとして使えない文字の一覧をご存知ありませんか。
(2)なぜjsontextとして使えない文字があるのでしょう。
(3)使う方法はありますか?
ご示唆ください。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2016/01/26 04:18
2016/01/27 02:06