post using JSON object and JSON arrays