1
0
Fork 0
mirror of https://github.com/ethauvin/JSON-java.git synced 2025-06-17 07:50:52 -07:00

adds back in the XML.stringToValue method, but deprecates it.

This commit is contained in:
John J. Aylward 2016-01-27 15:21:11 -05:00
parent 3007fc8ebe
commit c2b3f2bdb1

View file

@ -295,6 +295,18 @@ public class XML {
}
}
}
/**
* This method has been deprecated in favor of the
* {@link JSONObject.stringToValue(String)} method. Use it instead.
*
* @deprecated Use {@link JSONObject#stringToValue(String)} instead.
* @param string
* @return JSON value of this string or the string
*/
public static Object stringToValue(String string) {
return JSONObject.stringToValue(string);
}
/**
* Convert a well-formed (but not necessarily valid) XML string into a