mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-02 11:05:28 -04:00
adds back in the XML.stringToValue method, but deprecates it.
This commit is contained in:
parent
3007fc8ebe
commit
c2b3f2bdb1
12
XML.java
12
XML.java
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user