Unable to get value from JSON
-
Hi,
First, thanks for a great plugin.
However, I am having a few issues with extracting value from JSON file. See sample JSON file below:
{ "env": "production", "schedulerTime": "2021-09-11 03:44:18", "previous": { "starts": "2021-09-11 02:37:54.000000", "ends": "2021-09-11 02:42:23.000000", "type": "track", "name": "Maranatha! Praise Band - No Not One / You Are My Rock", "metadata": { "id": 1807, "name": "", "mime": "audio/mp4", "ftype": "audioclip", "directory": 1, "filepath": "imported/2/Maranatha! Praise Band/Praise Band 2 - You Are So Faithful/04 No Not One _ You Are My Rock.m4a", "import_status": 0, "currentlyaccessing": 0, "editedby": null, "mtime": "2021-01-09 10:26:03", "utime": "2021-01-09 10:26:03", "lptime": "2021-09-11 02:37:54", "md5": "1e8b311bd50e87e69a24b962a80d7ee9", "track_title": "No Not One / You Are My Rock", "artist_name": "Maranatha! Praise Band", "bit_rate": 256000, "sample_rate": 44100, "format": null, "length": "00:04:29.003175", "album_title": "Praise Band 2 - You Are So Faithful", "genre": "Christian & Gospel", "comments": null, "year": "1989", "track_number": 4, "channels": 2, "url": null, "bpm": null, "rating": null, "encoded_by": null, "disc_number": null, "mood": null, "label": null, "composer": null, "encoder": null, "checksum": null, "lyrics": null, "orchestra": null, "conductor": null, "lyricist": null, "original_lyricist": null, "radio_station_name": null, "info_url": null, "artist_url": null, "audio_source_url": null, "radio_station_url": null, "buy_this_url": null, "isrc_number": null, "catalog_number": null, "original_artist": null, "copyright": "? Compilation 1989 Maranatha! Music. All rights reserved. Unauthorized reproduction is a violation of applicable laws. Manufactured by EMI Christian Music Group,", "report_datetime": null, "report_location": null, "report_organization": null, "subject": null, "contributor": null, "language": null, "soundcloud_id": null, "soundcloud_error_code": null, "soundcloud_error_msg": null, "soundcloud_link_to_file": null, "soundcloud_upload_time": null, "replay_gain": null, "owner_id": 2, "cuein": "00:00:00", "cueout": "00:04:29.003175", "hidden": false, "filesize": 10014604, "description": null, "artwork": "imported/2/artwork/04 No Not One _ You Are My Rock", "track_type": "MUS", "artwork_url": "https://llmradio.com/api/track?id=1807&return=artwork" } } }
I am trying to retrieve track_name using the shortcode below:
[jsoncontentimporter url=”https://llmradio.com/api/live-info/?callback” debugmode=”10″ basenode=”previous”] {starts} {subloop-array:metadata:-1} {metadata.track_title} {/subloop-array:metadata} [/jsoncontentimporter]
I not getting any results.
Would really appreciate your help.
Regards,
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Unable to get value from JSON’ is closed to new replies.