Bitcoin Forum
November 16, 2024, 01:32:03 PM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: API - JSON FORMAT decode?  (Read 533 times)
matt-011 (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
February 01, 2014, 07:42:37 PM
 #1

Hi, how do I "interpret" the json format from the api call in my script ? I mean, what do I do to get only the 'funds':{'usd':0 (for example) in my string variable at the end ?
BlockChainLottery
Sr. Member
****
Offline Offline

Activity: 332
Merit: 250


AwesomeDice.net


View Profile WWW
February 01, 2014, 09:19:17 PM
 #2

What scripting language do you use? Here are examples of different languages used for the API.
To extract the values you want, most often you want to use a JSON-RPC library to parse the results.

Jacce
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250


View Profile
February 01, 2014, 09:20:38 PM
 #3

Depends on the scripting language, but most likely you'll get an array or object.
Gordon Bleu
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250


verified ✔


View Profile WWW
February 01, 2014, 09:24:13 PM
 #4

Maybe it's useful  https://bitcointalk.org/index.php?topic=289421.msg3098407#msg3098407

GAWMiners http://gawminers.com/ Gridseed ASICS in stock in USA
ONE YEAR FREE HOSTING AND ELECTRICITY WITH PURCHASE!






AROUSR.COM The Adult Chat Community (21+) We now accept BTCitcoins Smiley               |
Connect with hot girls for chat, talk, trade pics and more!➠Visit http://arousr.com (21+)|
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!