Json-lib's output depends on what you put in first. However are you aware that you can register Value & Bean processors to "massage" your data at any end of the serialization process? if the default behavior is not suiting your needs you can certainly use Value and Bean processors to get what you want.
Still, if those facilities prove to be inadequate then please file a bug...