Firebase : json to xml not working in Windows

Firebase : json to xml not working in Windows
0.0 0

#1

Hello,

As per mentioned here, i am trying to convert json file to xml but its not working in Windows cmd.

Error:
File "<string>", line 1
    import urllib; import sys; sys.argv = [transpy, -i, ./google-services.json, -o, ./googleservices.xml]; s = urllib.urlopen(https://raw.githubusercontent.com/sdkbox-doc/en/master/tools/generate_xml_from_google_services_json.py).read(); exec(s);
                                                        ^
SyntaxError: invalid syntax

Below command i am using,

python -c 'import urllib; import sys; sys.argv = ["transpy", "-i", "./google-services.json", "-o", "./googleservices.xml"]; s = urllib.urlopen("https://raw.githubusercontent.com/sdkbox-doc/en/master/tools/generate_xml_from_google_services_json.py").read(); exec(s);'

In MAC its working fine.


#2

thanks for feedback, we will look into this issue.


#3

have a try.

python -c """import urllib; import sys; sys.argv = ['transpy', '-i', './google-services.json', '-o', './googleservices.xml']; s = urllib.urlopen('https://raw.githubusercontent.com/sdkbox-doc/en/master/tools/generate_xml_from_google_services_json.py').read(); exec(s);"""

#4

Yes, working fine.
Pls mention in doc too.


#5

yep, we will.