[DEV] continue rework
This commit is contained in:
parent
70c74518b3
commit
862decc203
@ -15,6 +15,7 @@ import org.atriasoft.ejson.model.JsonNode;
|
|||||||
import org.atriasoft.ejson.parser.ParseJson;
|
import org.atriasoft.ejson.parser.ParseJson;
|
||||||
import org.atriasoft.ejson.parser.ParsingProperty;
|
import org.atriasoft.ejson.parser.ParsingProperty;
|
||||||
import org.atriasoft.ejson.serializer.SerializerJson;
|
import org.atriasoft.ejson.serializer.SerializerJson;
|
||||||
|
import org.atriasoft.etk.Uri;
|
||||||
|
|
||||||
public class Ejson {
|
public class Ejson {
|
||||||
/**
|
/**
|
||||||
@ -42,5 +43,13 @@ public class Ejson {
|
|||||||
return (JsonNode) parser.parse(data, property);
|
return (JsonNode) parser.parse(data, property);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static JsonNode parse(final Uri data) throws Exception, EjsonBuilderException, EjsonParserErrorMulti {
|
||||||
|
final Builder builder = new BuilderGeneric();
|
||||||
|
final ParseJson parser = new ParseJson(builder);
|
||||||
|
final ParsingProperty property = new ParsingProperty();
|
||||||
|
property.setDisplayError(true);
|
||||||
|
return (JsonNode) parser.parse("", property);
|
||||||
|
}
|
||||||
|
|
||||||
private Ejson() {}
|
private Ejson() {}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user