updated with examples for json argument