Title: Help with JSON
Last modified: December 5, 2017

---

# Help with JSON

 *  Resolved [testaccount165](https://wordpress.org/support/users/testaccount165/)
 * (@testaccount165)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/help-with-json/)
 * Hi everyone,
 * I’ve got two questions:
    1. Is there a way to add today’s date in the url as 
   a value like this: date=2017-12-05? 2. Can someone help me with the code to extract
   the data from “data” in this JSON format:
 * {
    “chartData”: { “prev”: “2017-12-04”, “next”: null, “date”: “2017-12-05”, “
   type”: “day”, “data”: [ [1512468000000, 33.359999999999999], [1512468300000, 
   81.189999999999998], [1512468600000, 93.310000000000002], [1512468900000, 104.15000000000001],[
   1512469200000, 86.810000000000002] ] } }

Viewing 1 replies (of 1 total)

 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/help-with-json/#post-9757896)
 * Try:
    [jsoncontentimporter url=… basenode=chartData] prev: {prev} [/jsoncontentimporter]
 * The “data” can’t be fetched by the free version.
    The pro-version is doing this(
   see [http://wptest.kux.de/8172-2/](http://wptest.kux.de/8172-2/) )
 * [jsoncontentimporterpro url=http://wptest.kux.de/extra/json/t165.json parser=
   twig]prev: {{chartData.prev}}
    {% for key in chartData.data %} {{chartData.data[
   loop.index0][0]}} – {{chartData.data[loop.index0][1]}} {% endfor %} [/jsoncontentimporterpro]
 * There PHP rounds the numbers… Even the pro version can’t change that…

Viewing 1 replies (of 1 total)

The topic ‘Help with JSON’ is closed to new replies.

 * ![](https://ps.w.org/json-content-importer/assets/icon-256x256.png?rev=3464653)
 * [Get Use APIs - JSON Content Importer](https://wordpress.org/plugins/json-content-importer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/json-content-importer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/json-content-importer/)
 * [Active Topics](https://wordpress.org/support/plugin/json-content-importer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/json-content-importer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/json-content-importer/reviews/)

## Tags

 * [current date](https://wordpress.org/support/topic-tag/current-date/)
 * [extract](https://wordpress.org/support/topic-tag/extract/)

 * 1 reply
 * 2 participants
 * Last reply from: [berkux](https://wordpress.org/support/users/berkux/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/help-with-json/#post-9757896)
 * Status: resolved