Examples of JsonLocation


Examples of org.codehaus.jackson.JsonLocation

                }
            }
        } else if (jsonString.trim().equals("null")) {
            rval = null;
        } else {
            throw new JsonParseException("document doesn't start with a valid json element", new JsonLocation("\""
                    + jsonString.substring(0, Math.min(jsonString.length(), 100)) + "...\"", 0, 1, 0));
        }
        return rval;
    }
View Full Code Here

Examples of org.codehaus.jackson.JsonLocation

        }
        context.refresh(outputDirectory);
    }

    private void attachErrorMessage(JsonParseException e) {
        JsonLocation location = e.getLocation();
        File file;
        if (location.getSourceRef() instanceof File) {
            file = (File) location.getSourceRef();
        } else {
            file = null;
        }
        context.addMessage(file, location.getLineNr(), location.getColumnNr(), e.getLocalizedMessage(), BuildContext.SEVERITY_ERROR, e);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.