iAmNewbe Posted July 19, 2020 Share Posted July 19, 2020 This is a question without a code sample because I have not done this. I do not want to use any UDF's or non-standard includes for this. I have been using a custom delimited text file as a "database" and would prefer to use JSON or something XML like. With PHP or Javascript I can parse through to specific nodes and get and set what I need, though I have no idea how to do that with AutoIT. I have read through the help file and do use the built-in include file functions to read in and write out to files. How can I do this in a specific format JSON for example? Writing it out I can figure out but how do you get or retrieve a specific JSON node for example? I see two ways to bring in files or lines from a file. Array or String... then what? I don't see anything other than bring in the entire file via string or array... parse via regex??? I guess I need a direction to start. Thanks. Link to comment Share on other sites More sharing options...
Earthshine Posted July 19, 2020 Share Posted July 19, 2020 Why can’t you use a UDF? You’ll have to write your own My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
iAmNewbe Posted July 19, 2020 Author Share Posted July 19, 2020 22 minutes ago, Earthshine said: Why can’t you use a UDF? You’ll have to write your own Yes. Though I actually do not know how to write UDF's. I will look for ideas on where to start. Thank you. Link to comment Share on other sites More sharing options...
Earthshine Posted July 19, 2020 Share Posted July 19, 2020 Then learn how to program or use a udf. You never answered the question as to why you can’t use one that’s already written. You don’t even know how to program and you don’t want to use anything that’s already written? It doesn’t make any sense My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
Danp2 Posted July 19, 2020 Share Posted July 19, 2020 Earthshine, TheXman and BugFix 1 2 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
iAmNewbe Posted July 19, 2020 Author Share Posted July 19, 2020 6 hours ago, Earthshine said: You never answered the question as to why you can’t use one that’s already written. I do not want to use one that is already written. I was looking for some guidance on starting this that others here may be aware of though I do not want to use something already completed. I have enough file parsing experience to figure it out. 6 hours ago, Earthshine said: You don’t even know how to program and you don’t want to use anything that’s already written? It doesn’t make any sense I prefer to come up with my own solution though I am not sure of a starting approach. Have you ever just wanted to write something to see if you can do it and help you understand things better? I want to learn by doing and not have something done by others that may have their own approach. I call it being creative. I have never parsed JSON / XML using AutoIT.. I have done it with other languages that have built-in methods to do that. AutoIT does not seem to have this, I am not sure where to start. I am searching other places for ideas. I may post results of what I am doing depending on rudeness level of responses. Thank you for your concern. Link to comment Share on other sites More sharing options...
Earthshine Posted July 19, 2020 Share Posted July 19, 2020 Start by studying the one that’s already written Danp2 and TheXman 2 My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
Earthshine Posted July 19, 2020 Share Posted July 19, 2020 Also. If you really really want to write your own JSON parser then you need to fully understand the JSON specification https://www.ietf.org/rfc/rfc4627.txt My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
iAmNewbe Posted July 19, 2020 Author Share Posted July 19, 2020 Thank you for being helpful. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now