Change to using JSON format as input
Add implementation for posting multiple values