RE: Getting Json request to work 04-11-2018, 12:49 AM
#16
(04-09-2018, 02:00 PM)hacxx Wrote:Code:[{"banner_type":null,"id":"2162875","campid":"8909","ip":"154.69.47.83","subid":"","subid2":"","subid3":"","earn":"300.0","ddate":"2018-04-05","dtime":"02:36:11","ustamp":1491377771,"preid":null,"gateid":"1310615","country":"US","currency":"USD","banner_id":"0","type":"CPC"}, {"banner_type":null,"id":"2155364","campid":"10357","ip":"111.125.111.139","subid":"","subid2":"","subid3":"","earn":"0.80","ddate":"2018-04-04","dtime":"08:29:26","ustamp":1491312566,"preid":null,"gateid":"1310615","country":"PH","currency":"USD","banner_id":"0","type":"CPC"}]
Dear god PLEASE format that....
(04-10-2018, 06:18 PM)Pikami Wrote:(04-10-2018, 06:07 PM)Synthx Wrote: Okay, this might be a stupid question, but I'm here to learn, and this is an opportunity for someone to feel like they're contributing to the community... Â
My question is, what would you use json requests for, and what languages could you use them with?
Edit: Even if someone made a thread on it, that'd be nice.
json is mostly used while communicating with an API
Example: you have some reactive web page where you need to reload data every few seconds, you don't want to reload the whole page, so you use javascript to get that data trough an API and update just that.
There are many more use cases, this is only one example. If you have enough interest in this or want to learn more you can always PM me
I disagree. JSON is an encoding used to describe an object. It doesn't need to be used with an API, in fact many NoSQL implementations use it. It can be helpful when you want to describe something in a user-readable format, rather than using a plist. It can also be nice if you are creating software configuration schemas and you don't want the user to have to specify all of the variables.


























![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)