Giter Club home page Giter Club logo

json-sanitizer's People

Contributors

mikesamuel avatar

Watchers

 avatar

json-sanitizer's Issues

Issue with documentation/running

I am looking for exactly this tool. However, my background is ruby, not js.  

Could anyone provide at least what libraries are in here? My interpreter can't 
even load a main class.

What steps will reproduce the problem?
1. Be newb to js
2. try to use this in any way
3. end up with Error: Could not find or load main class 
json-sanitizer-2012-10-17.jar

Please provide any additional information below.
Sorry to be pain, just nothing telling me what the classes are makes it quite 
difficult to call them.

Original issue reported on code.google.com by [email protected] on 16 Sep 2013 at 3:17

  • Merged into: #1

sanitizer strips part of the value when the value contains a forward slash

What steps will reproduce the problem?
1.add following line to JsonSanitizerTest: assertSanitized("dev/comment", 
"dev/comment");
2.run the test


What is the expected output? What do you see instead?
Instead of the expected output "dev/comment", we get "dev". 

What version of the product are you using? On what operating system?
latest git version, Windows 7


Original issue reported on code.google.com by [email protected] on 30 Jan 2015 at 10:14

JsonSanitizer throws exceptions and errors on malformed input

What steps will reproduce the problem?

{{{
JsonSanitizer.sanitize("[{{},ä")

java.lang.StringIndexOutOfBoundsException: String index out of range: 7
  at java.lang.String.charAt(String.java:658)
  at com.google.json.JsonSanitizer.elideTrailingComma(JsonSanitizer.java:650)
  at com.google.json.JsonSanitizer.sanitize(JsonSanitizer.java:398)
  at com.google.json.JsonSanitizer.sanitize(JsonSanitizer.java:96)
}}}

{{{
JsonSanitizer.sanitize("[{{ää},ä");

java.lang.AssertionError: ä
  at com.google.json.JsonSanitizer.elideTrailingComma(JsonSanitizer.java:656)
  at com.google.json.JsonSanitizer.sanitize(JsonSanitizer.java:398)
  at com.google.json.JsonSanitizer.sanitize(JsonSanitizer.java:96)
}}}

What version of the product are you using?

* The one from 2012-10-17.

Original issue reported on code.google.com by [email protected] on 12 Jun 2014 at 10:23

Issue with documentation/running

I am looking for exactly this tool. However, my background is ruby, not js.  

Could anyone provide at least what libraries are in here? My interpreter can't 
even load a main class.

What steps will reproduce the problem?
1. Be newb to js
2. try to use this in any way
3. end up with Error: Could not find or load main class 
json-sanitizer-2012-10-17.jar

Please provide any additional information below.
Sorry to be pain, just nothing telling me what the classes are makes it quite 
difficult to call them.

Original issue reported on code.google.com by [email protected] on 16 Sep 2013 at 3:17

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.