Git Product home page Git Product logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 2, 2024
Yes, we were aware that some users may need this kind of convenient array 
support. We
are considering adding it to the future release. Thanks a lot for your 
suggestion.

Original comment by [email protected] on 7 Oct 2009 at 12:30

  • Changed state: Accepted
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

from json-simple.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 2, 2024
Issue 14 has been merged into this issue.

Original comment by [email protected] on 7 Dec 2009 at 5:22

from json-simple.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 2, 2024
json-simple was unable to serialize the result of request.getParameterMap() 
because
it returns Map<String,String[]>. In fact, the result is not even valid JSON. If 
it's
just calling toString(), I would expect it to at least be quoted.

*** Code:
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
  String json = JSONValue.toJSONString(request.getParameterMap());
  doSomethingWith(json);
}

*** Test URL:
/myservlet?test=foo

*** Result:
{"test":[Ljava.lang.String;@2afa2afa}

*** Expected Result:
{"test":["foo"]}

Original comment by [email protected] on 10 Feb 2010 at 8:11

from json-simple.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 2, 2024
Issue 28 has been merged into this issue.

Original comment by [email protected] on 14 Jul 2010 at 1:14

from json-simple.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 2, 2024
Looks like the outcome from 
http://code.google.com/p/json-simple/issues/detail?id=48 is pretty similar to 
this, maybe should be merged?

Original comment by [email protected] on 3 Apr 2012 at 8:07

from json-simple.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 2, 2024
This is done in r211.

Original comment by [email protected] on 10 Aug 2013 at 2:58

  • Changed state: Fixed

from json-simple.

Related Issues (20)

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.