Title: API - JSON FORMAT decode? Post by: matt-011 on February 01, 2014, 07:42:37 PM 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 ?
Title: Re: API - JSON FORMAT decode? Post by: BlockChainLottery on February 01, 2014, 09:19:17 PM What scripting language do you use? Here (https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)) 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. Title: Re: API - JSON FORMAT decode? Post by: Jacce on February 01, 2014, 09:20:38 PM Depends on the scripting language, but most likely you'll get an array or object.
Title: Re: API - JSON FORMAT decode? Post by: Gordon Bleu on February 01, 2014, 09:24:13 PM Maybe it's useful https://bitcointalk.org/index.php?topic=289421.msg3098407#msg3098407 (https://bitcointalk.org/index.php?topic=289421.msg3098407#msg3098407)
|