What do we need to do to get JSON upload permissions

Generally, if you are posting a flow you should export only the nodes required to show the problem, and then paste there flow inline rather than uploading.
In order to make code readable and usable it is necessary to surround your code with three backticks (also known as a left quote or backquote ```)

``` 
   code goes here 
```

See this post for more details - How to share code or flow json