sets/gets form input values using JSON documents