* @param reader The JSON reader.
* @param valueFactory The factory used to create the value.
* @return The value such as defined by the token obtained from the reader.
*/
public static CoreValue fromJsopReader(JsopReader reader, CoreValueFactory valueFactory) {
CoreValue value;
if (reader.matches(JsopReader.NUMBER)) {
String number = reader.getToken();
value = valueFactory.createValue(Long.valueOf(number));
} else if (reader.matches(JsopReader.TRUE)) {
value = valueFactory.createValue(true);