@aamirkhatri thank you but that does not seem to provide me with the information I need on save. When I press the publish button the only thing I get adding both your lines is:
Array
(
[rest_route] => /wp/v2/posts/372
[_locale] => user
)
the other thing is that this was not posted using jQuery but it seems to be the React library of Guttenberg. Other blocks seem to work by just defining ‘attributes’ in the callback.