sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #30620
Re: [Question #262180]: How i can import json module in my scripts
Question #262180 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/262180
Status: Open => Answered
RaiMan proposed the following answer:
If you want the parser in the script:
import org.json.simple.parser.JSONParser as JSP
parser = JSP()
parser.parse(someReader)
someReader must be a reader object of java.io.reader (e.g. FileReader())
But I guess the path you selected is to much Java based.
You should use a solution that is Jython based.
e.g. jyson (http://opensource.xhaus.com/projects/jyson)
it is well documented and written for use with Jython.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.