|
Hello, I have attempted to use the JSONParser in a project and I am able to do the following:
1) build and deploy to a Netduino Plus controller
2) Instantiate and partially process a http request
But part of the way through I am getting a strange error in the JSONParser class:
An unhandled exception of type 'System.InvalidOperationException' occurred in mscorlib.dll
This occurs on line 266 of the JSONParser.cs
protected void StoreCurrentDataStructure() {
var innerStructure = (JSONObject)_dataStructureStack.Pop();
_currentDataStructure = (JSONObject)_dataStructureStack.Peek();
the field _dataStructureStack has a count of 0, which I am guessing is the reason for the exception, but why wouldn't there be any items in this stack?
The JSON string is:
"{\"route\":\"onthephone\", \"alert_status\":\"on\"}"
I had to remove the netduino.helpers.Helpers classes and create my own project from the main project because it was throwing the "An error has occurred: please check your hardware" reminiscent of the files being too large for the
netduino. Outside of this I am using all of the original source code.
Thanks in advance
John
|