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:
parent
3007fc8ebe
commit
c2b3f2bdb1
1 changed files with 12 additions and 0 deletions
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
|
* Convert a well-formed (but not necessarily valid) XML string into a
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue