Fix error message about json decoding
Fix error message about json decoding

When there was a json_decode problem, we use the decoded variable in the message which is null (due to the error).
Now the `json_last_error_msg()` function is used to give details to the user.

bee4/transport,bee4/transport