compute api: support both POST data and form (file), added structured json output