Helper to post JSON to Symfony forms