Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

can i give an alias to propertyName?

Help
floyd
2009-02-03
2013-04-29
  • floyd
    floyd
    2009-02-03

    HashMap map = new HashMap();
    map.put("hello", "world");

    i need the output :{"hellonew":"world"}

     
    • floyd
      floyd
      2009-02-04

      no one knows?

       
    • aalmiray
      aalmiray
      2009-02-04

      Floyd,

      Currently there is no automatic way to handle this case, you will have to post-process the JSONObject yourself for the time being. You could however file an ER so that we would be able to keep track of it :-)

      Cheers,
      Andres