Return JsonContent from writing the specific value.
the JsonContent
the value to write
on write error