#JSON = 1
Global WorkPath$ = GetPathPart(ProgramFilename())
Global JobsFile$ = WorkPath$ + "jobs.json"
Structure JobData
published.s
category.s
url.s
skills.s
EndStructure
NewList Jobs.JobData()
If LoadJSON(#JSON,JobsFile$)
ExtractJSONList(JSONValue(#JSON), Jobs())
ForEach Jobs()
Debug ...
Search found 46 matches
- Thu Jul 13, 2023 3:55 pm
- Forum: Coding Questions
- Topic: Need help with array of objects !
- Replies: 7
- Views: 967
- Thu Jul 13, 2023 3:35 pm
- Forum: Coding Questions
- Topic: Need help with array of objects !
- Replies: 7
- Views: 967
Re: Need help with array of objects !
there is an object here is array of objects
- Thu Jul 13, 2023 3:32 pm
- Forum: Coding Questions
- Topic: Need help with array of objects !
- Replies: 7
- Views: 967
Re: Need help with array of objects !
#JSON = 1
Global WorkPath$ = GetPathPart(ProgramFilename())
Global JobsFile$ = WorkPath$ + "jobs.json"
Structure JobData
published.s
category.s
url.s
skills.s
EndStructure
Global NewList J.JobData()
LoadJSON(#JSON, JobsFile$)
ExtractJSONStructure(JSONValue(#JSON), @J, JobData)
; what ...
Global WorkPath$ = GetPathPart(ProgramFilename())
Global JobsFile$ = WorkPath$ + "jobs.json"
Structure JobData
published.s
category.s
url.s
skills.s
EndStructure
Global NewList J.JobData()
LoadJSON(#JSON, JobsFile$)
ExtractJSONStructure(JSONValue(#JSON), @J, JobData)
; what ...
- Thu Jul 13, 2023 3:20 pm
- Forum: Coding Questions
- Topic: Need help with array of objects !
- Replies: 7
- Views: 967
Re: Need help with array of objects !
after node js javascript I can't understand how to .. please give me example
- Thu Jul 13, 2023 3:12 pm
- Forum: Coding Questions
- Topic: Need help with array of objects !
- Replies: 7
- Views: 967
Need help with array of objects !
I have file job.json:
[
{
"published": "",
"category": "",
"url": "",
"skills": ""
},
{
"published": "",
"category": "",
"url": "",
"skills": ""
},
{
"published": "",
"category": "",
"url": "",
"skills": ""
}
]
how to read values (url ...) ?
[
{
"published": "",
"category": "",
"url": "",
"skills": ""
},
{
"published": "",
"category": "",
"url": "",
"skills": ""
},
{
"published": "",
"category": "",
"url": "",
"skills": ""
}
]
how to read values (url ...) ?
- Tue Feb 21, 2023 10:11 am
- Forum: Applications - Feedback and Discussion
- Topic: [Module] Chart - Gadget
- Replies: 100
- Views: 49859
Re: [Module] Chart - Gadget
Caronte3D
can you suggest better? Thank you!
Realtime? I don't think this is possible (and intended) with this module...
Hi, perhaps, but some flickering persists... here is how I did it:
https://i.ibb.co/VNStwrD/Untitled2.png
CompilerIf #PB_Compiler_IsMainFile
Enumeration
#Window ...
can you suggest better? Thank you!
Realtime? I don't think this is possible (and intended) with this module...
Hi, perhaps, but some flickering persists... here is how I did it:
https://i.ibb.co/VNStwrD/Untitled2.png
CompilerIf #PB_Compiler_IsMainFile
Enumeration
#Window ...
- Mon Feb 20, 2023 2:48 pm
- Forum: Applications - Feedback and Discussion
- Topic: [Module] Chart - Gadget
- Replies: 100
- Views: 49859
Re: [Module] Chart - Gadget
How can I use line-chart for as live chart ... realtime data insert ... I need multiline chart ... ??
- Sun Feb 12, 2023 10:03 pm
- Forum: Coding Questions
- Topic: HTTPS - GET HEAD request with proxy like "ip:port:user:pass" ?
- Replies: 12
- Views: 6593
Re: HTTPS - GET HEAD request with proxy like "ip:port:user:pass" ?
import socket
HOST = "127.0.0.1"
PORT = 65431
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s.bind((HOST, PORT))
s.listen()
while True:
conn, addr = s.accept()
with conn:
print(f"connected by {addr}")
data = conn.recv(1024)
print(data.decode())
conn.send(data)
conn ...
HOST = "127.0.0.1"
PORT = 65431
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s.bind((HOST, PORT))
s.listen()
while True:
conn, addr = s.accept()
with conn:
print(f"connected by {addr}")
data = conn.recv(1024)
print(data.decode())
conn.send(data)
conn ...
- Sun Feb 12, 2023 7:19 pm
- Forum: Coding Questions
- Topic: HTTPS - GET HEAD request with proxy like "ip:port:user:pass" ?
- Replies: 12
- Views: 6593
Re: HTTPS - GET HEAD request with proxy like "ip:port:user:pass" ?
no, I need headers of request .. not response
https://mkyong.com/wp-content/uploads/2 ... eaders.png
https://mkyong.com/wp-content/uploads/2 ... eaders.png
- Sun Feb 12, 2023 6:46 pm
- Forum: Coding Questions
- Topic: HTTPS - GET HEAD request with proxy like "ip:port:user:pass" ?
- Replies: 12
- Views: 6593
Re: HTTPS - GET HEAD request with proxy like "ip:port:user:pass" ?
Thank you infratec , I get it working...
IncludeFile "LibCurl.pbi"
Procedure.s URLGetData(URL$)
Protected Curl.i, *CurlSList, Response$, ret.l, total_time.d, connect.d
Curl = curl_easy_init()
If Curl
*CurlSList = curl_slist_append(#Null, "User-Agent: Mozilla/5.0 (Windows NT 10.0 ...
IncludeFile "LibCurl.pbi"
Procedure.s URLGetData(URL$)
Protected Curl.i, *CurlSList, Response$, ret.l, total_time.d, connect.d
Curl = curl_easy_init()
If Curl
*CurlSList = curl_slist_append(#Null, "User-Agent: Mozilla/5.0 (Windows NT 10.0 ...
- Sun Feb 12, 2023 3:18 pm
- Forum: Coding Questions
- Topic: HTTPS - GET HEAD request with proxy like "ip:port:user:pass" ?
- Replies: 12
- Views: 6593
Re: HTTPS - GET HEAD request with proxy like "ip:port:user:pass" ?
Since I have no proxy with user and password, I can not provide a working example
Usage see here:
https://curl.se/libcurl/c/CURLOPT_PROXYUSERPWD.html
hi infratec , I saw your code with winapi : https://www.purebasic.fr/english/viewtopic.php?p=441105#p441105
can this code be modified for proxy ...
- Sun Feb 12, 2023 2:32 pm
- Forum: Coding Questions
- Topic: HTTPS - GET HEAD request with proxy like "ip:port:user:pass" ?
- Replies: 12
- Views: 6593
Re: HTTPS - GET HEAD request with proxy like "ip:port:user:pass" ?
I need with timeout ? ReceiveHTTPMemory has not timeout option ..
- Sun Feb 12, 2023 2:21 pm
- Forum: Coding Questions
- Topic: HTTPS - GET HEAD request with proxy like "ip:port:user:pass" ?
- Replies: 12
- Views: 6593
HTTPS - GET HEAD request with proxy like "ip:port:user:pass" ?
Hi, I need to make request HTTPS - GET or HEAD .. to test my server or ping ... but only through proxy with authentication .. can someone help with code .. winApi or else ? thank you.
- Thu Dec 15, 2022 11:36 pm
- Forum: Coding Questions
- Topic: Parse JSON object with array HELP!
- Replies: 1
- Views: 474
Parse JSON object with array HELP!
Hi, need help !?
how I can parse in structure and load-save from-to file example "client,json"
{
"proxy": "",
"priority": "Z",
"books": [{
"type": "text",
"id": "text",
"label": "text",
"value": "text"
}, {
"type": "text",
"id": "text",
"label": "text",
"value": "text"
}, {
"type ...
how I can parse in structure and load-save from-to file example "client,json"
{
"proxy": "",
"priority": "Z",
"books": [{
"type": "text",
"id": "text",
"label": "text",
"value": "text"
}, {
"type": "text",
"id": "text",
"label": "text",
"value": "text"
}, {
"type ...
- Mon Apr 12, 2021 8:13 pm
- Forum: Tricks 'n' Tips
- Topic: PureTelegram (framework for using the Telegram API)
- Replies: 101
- Views: 31665