use jsonobject instead of hash map