[SPARK-25972][PYTHON] Missed JSON options in streaming.py
[SPARK-25972][PYTHON] Missed JSON options in streaming.py

## What changes were proposed in this pull request?

Added JSON options for `json()` in streaming.py that are presented in the similar method in readwriter.py. In particular, missed options are `dropFieldIfAllNull` and `encoding`.

Closes #22973 from MaxGekk/streaming-missed-options.

Authored-by: Maxim Gekk <b91a34c712a29cd91cde3972985e114f1bb54d88@gmail.com>
Signed-off-by: hyukjinkwon <2680965ad5aae29275c8fb10150cb10f5554e78b@apache.org>

Aegeaner/spark,gengliangwang/spark,zero323/spark,hhbyyh/spark,jkbradley/spark,pgandhi999/spark,HyukjinKwon/spark,kiszk/spark,zzcclp/spark,shuangshuangwang/spark,zzcclp/spark,ConeyLiu/spark,icexelloss/spark,goldmedal/spark,facaiy/spark,chuckchen/spark,mdespriee/spark,LantaoJin/spark,skonto/spark,Aegeaner/spark,ptkool/spark,WeichenXu123/spark,JoshRosen/spark,BryanCutler/spark,jiangxb1987/spark,techaddict/spark,skonto/spark,witgo/spark,witgo/spark,rednaxelafx/apache-spark,maropu/spark,nchammas/spark,JoshRosen/spark,aosagie/spark,ueshin/apache-spark,highfei2011/spark,holdenk/spark,hvanhovell/spark,ueshin/apache-spark,Aegeaner/spark,matthewfranglen/spark,BryanCutler/spark,dongjoon-hyun/spark,yanboliang/spark,darionyaphet/spark,mdespriee/spark,facaiy/spark,darionyaphet/spark,gengliangwang/spark,maropu/spark,goldmedal/spark,apache/spark,hvanhovell/spark,icexelloss/spark,maropu/spark,shaneknapp/spark,dbtsai/spark,srowen/spark,wangmiao1981/spark,kevinyu98/spark,shaneknapp/spark,actuaryzhang/spark,wangmiao1981/spark,zuotingbing/spark,witgo/spark,Aegeaner/spark,mahak/spark,goldmedal/spark,guoxiaolongzte/spark,dbtsai/spark,gengliangwang/spark,wzhfy/spark,xuanyuanking/spark,xuanyuanking/spark,HyukjinKwon/spark,rezasafi/spark,yanboliang/spark,dbtsai/spark,guoxiaolongzte/spark,JoshRosen/spark,spark-test/spark,WindCanDie/spark,Aegeaner/spark,wzhfy/spark,wangyum/spark,wzhfy/spark,caneGuy/spark,skonto/spark,shuangshuangwang/spark,Aegeaner/spark,holdenk/spark,dbtsai/spark,actuaryzhang/spark,hhbyyh/spark,taroplus/spark,ConeyLiu/spark,caneGuy/spark,jkbradley/spark,skonto/spark,cloud-fan/spark,bdrillard/spark,kevinyu98/spark,gengliangwang/spark,spark-test/spark,caneGuy/spark,guoxiaolongzte/spark,zzcclp/spark,JoshRosen/spark,darionyaphet/spark,skonto/spark,wangyum/spark,dbtsai/spark,goldmedal/spark,cloud-fan/spark,highfei2011/spark,spark-test/spark,wangyum/spark,xuanyuanking/spark,zero323/spark,aosagie/spark,milliman/spark,srowen/spark,darionyaphet/spark,mdespriee/spark,dongjoon-hyun/spark,spark-test/spark,icexelloss/spark,ptkool/spark,hhbyyh/spark,facaiy/spark,HyukjinKwon/spark,cloud-fan/spark,nchammas/spark,actuaryzhang/spark,zzcclp/spark,aosagie/spark,apache/spark,mahak/spark,wzhfy/spark,darionyaphet/spark,caneGuy/spark,witgo/spark,vinodkc/spark,jiangxb1987/spark,nchammas/spark,guoxiaolongzte/spark,pgandhi999/spark,taroplus/spark,cloud-fan/spark,ConeyLiu/spark,vinodkc/spark,maropu/spark,srowen/spark,WindCanDie/spark,kiszk/spark,WeichenXu123/spark,WindCanDie/spark,WeichenXu123/spark,zzcclp/spark,vinodkc/spark,zero323/spark,nchammas/spark,highfei2011/spark,Aegeaner/spark,apache/spark,darionyaphet/spark,techaddict/spark,zuotingbing/spark,guoxiaolongzte/spark,dongjoon-hyun/spark,ptkool/spark,apache/spark,kevinyu98/spark,LantaoJin/spark,bdrillard/spark,milliman/spark,wangmiao1981/spark,shuangshuangwang/spark,zuotingbing/spark,taroplus/spark,milliman/spark,chuckchen/spark,skonto/spark,milliman/spark,nchammas/spark,LantaoJin/spark,actuaryzhang/spark,BryanCutler/spark,WindCanDie/spark,dbtsai/spark,actuaryzhang/spark,yanboliang/spark,jkbradley/spark,aosagie/spark,aosagie/spark,rezasafi/spark,kiszk/spark,vinodkc/spark,yanboliang/spark,witgo/spark,icexelloss/spark,mdespriee/spark,shaneknapp/spark,vinodkc/spark,rednaxelafx/apache-spark,techaddict/spark,hhbyyh/spark,WindCanDie/spark,rezasafi/spark,kevinyu98/spark,rednaxelafx/apache-spark,kevinyu98/spark,milliman/spark,ueshin/apache-spark,maropu/spark,apache/spark,BryanCutler/spark,actuaryzhang/spark,jkbradley/spark,HyukjinKwon/spark,rezasafi/spark,WeichenXu123/spark,wangyum/spark,aosagie/spark,srowen/spark,hhbyyh/spark,holdenk/spark,bdrillard/spark,rezasafi/spark,chuckchen/spark,HyukjinKwon/spark,cloud-fan/spark,taroplus/spark,vinodkc/spark,xuanyuanking/spark,holdenk/spark,ConeyLiu/spark,hvanhovell/spark,dongjoon-hyun/spark,bdrillard/spark,kiszk/spark,zero323/spark,caneGuy/spark,highfei2011/spark,icexelloss/spark,jkbradley/spark,jkbradley/spark,skonto/spark,techaddict/spark,zuotingbing/spark,mdespriee/spark,shaneknapp/spark,LantaoJin/spark,mahak/spark,shaneknapp/spark,zuotingbing/spark,shuangshuangwang/spark,witgo/spark,JoshRosen/spark,rezasafi/spark,holdenk/spark,ConeyLiu/spark,mahak/spark,HyukjinKwon/spark,goldmedal/spark,xuanyuanking/spark,wangyum/spark,goldmedal/spark,rednaxelafx/apache-spark,goldmedal/spark,hhbyyh/spark,ptkool/spark,rezasafi/spark,ueshin/apache-spark,mahak/spark,nchammas/spark,yanboliang/spark,facaiy/spark,yanboliang/spark,holdenk/spark,BryanCutler/spark,chuckchen/spark,dongjoon-hyun/spark,jiangxb1987/spark,kevinyu98/spark,shaneknapp/spark,shuangshuangwang/spark,WeichenXu123/spark,zuotingbing/spark,techaddict/spark,wangmiao1981/spark,wzhfy/spark,wzhfy/spark,shuangshuangwang/spark,mahak/spark,mdespriee/spark,pgandhi999/spark,mdespriee/spark,pgandhi999/spark,spark-test/spark,jiangxb1987/spark,zero323/spark,jiangxb1987/spark,zero323/spark,BryanCutler/spark,bdrillard/spark,LantaoJin/spark,spark-test/spark,highfei2011/spark,xuanyuanking/spark,gengliangwang/spark,icexelloss/spark,techaddict/spark,holdenk/spark,ptkool/spark,witgo/spark,rednaxelafx/apache-spark,vinodkc/spark,ConeyLiu/spark,srowen/spark,dongjoon-hyun/spark,WeichenXu123/spark,zzcclp/spark,JoshRosen/spark,caneGuy/spark,LantaoJin/spark,guoxiaolongzte/spark,WeichenXu123/spark,wzhfy/spark,apache/spark,icexelloss/spark,techaddict/spark,gengliangwang/spark,dongjoon-hyun/spark,hhbyyh/spark,cloud-fan/spark,WindCanDie/spark,wangmiao1981/spark,milliman/spark,chuckchen/spark,wangyum/spark,taroplus/spark,nchammas/spark,zzcclp/spark,hvanhovell/spark,ueshin/apache-spark,chuckchen/spark,apache/spark,kevinyu98/spark,LantaoJin/spark,BryanCutler/spark,JoshRosen/spark,facaiy/spark,guoxiaolongzte/spark,pgandhi999/spark,ConeyLiu/spark,pgandhi999/spark,highfei2011/spark,rednaxelafx/apache-spark,kiszk/spark,highfei2011/spark,wangmiao1981/spark,srowen/spark,milliman/spark,facaiy/spark,kiszk/spark,rednaxelafx/apache-spark,zero323/spark,chuckchen/spark,caneGuy/spark,wangmiao1981/spark,jkbradley/spark,wangyum/spark,HyukjinKwon/spark,hvanhovell/spark,maropu/spark,ueshin/apache-spark,jiangxb1987/spark,actuaryzhang/spark,pgandhi999/spark,ptkool/spark,xuanyuanking/spark,cloud-fan/spark,taroplus/spark,aosagie/spark,jiangxb1987/spark,ueshin/apache-spark,shaneknapp/spark,bdrillard/spark,shuangshuangwang/spark,taroplus/spark,WindCanDie/spark,facaiy/spark,yanboliang/spark,srowen/spark,hvanhovell/spark,mahak/spark,gengliangwang/spark,kiszk/spark,maropu/spark,ptkool/spark,zuotingbing/spark,bdrillard/spark,darionyaphet/spark,spark-test/spark,dbtsai/spark,hvanhovell/spark