Saturday 7 April 2012

Getting JSON string as an Integer

The Get data algorithm returns the JSON as a string, it is required to convert the string as an integer.

The string contains new lines ("\n") within it so getting the integer was more difficult than it first appeared.

To get the integer from a string , the following JAVA code is used:

Integer.ParseInt(string)

Chris

No comments:

Post a Comment