Whenever I have a Json string object with a space in it I get the following error.
Java:
String jString = getResources().getString(R.string.event);
Space in the JSON creates this issue . TRY following json {"Array":[{"Name":"One-two-three"},{"Name":"Two"},{"Name":"Three"}]}
Try wrapping it in a CDATA block. This should prevent any confusion.
<resources>
<string name="event"><![CDATA[
{"Array":[{"Name":"One two three"},{"Name":"Two"},{"Name":"Three"}]}
]]></string>
</resources>
Reading through my own post I noticed that the error message doesn't have any quotes around the string object values. So I changed the " to \" in the xml string and it worked fine.