changing empty array to NULL before post to avoid conflict between json array and json object
fixing content type in get-a-channel-config