uneven behaviour create a post in using json api with white spaces

You should be urlencodeing your content. Whitespace is not a valid character in URLs. If you have access to WordPress functions on the sending side you can use esc_url. I suspect that has a lot to do with your problem.

Be aware that there is a character limit on $_GET strings. If you are going to be posting long content you should be sending over $_POST.