Access array of complex JSON objects with toJSONList()

Access array of complex JSON objects with toJSONList()

Hi,

I'm trying to create a json list using the result of an api call and parse it with the toJSONList() function.
The API call works fine, but unfortunately I'm not able to find out how to process the result and create a (json) list of it to be able to do something useful with it.

I'm using the following Deluge code snippet:
  1. header = { "X-TrackerToken" : "SECRET" };
  2. projects = getUrl("https://www.pivotaltracker.com/services/v5/projects", header);
  3. projectsJson = projects.getJSON("{}");
  4. jsonList = projectsJson.toJSONList();
  5. for each json in jsonList
  6. {
  7.     projectname = json.getJSON("name");
  8.     Project:ui.add(projectname);
  9. }

It returns the following error: 
Error evaluating STRING expression : Invalid JSON format string.

The API call returns the following json payload:

[
    {
        "id": 1231314,
        "kind": "project",
        "name": "Philips ActiveLink SalesForce integration",
        "version": 220,
        "iteration_length": 1,
        "week_start_day": "Monday",
        "point_scale": "0,1,2,3,5,8,13",
        "point_scale_is_custom": true,
        "bugs_and_chores_are_estimatable": false,
        "automatic_planning": true,
        "enable_tasks": true,
        "time_zone": {
            "kind": "time_zone",
            "olson_name": "Europe/Amsterdam",
            "offset": "+01:00"
        },
        "velocity_averaged_over": 3,
        "number_of_done_iterations_to_show": 12,
        "has_google_domain": false,
        "enable_incoming_emails": true,
        "initial_velocity": 10,
        "public": false,
        "atom_enabled": false,
        "start_date": "2015-01-05",
        "start_time": "2015-01-04T23:00:00Z",
        "created_at": "2014-12-16T12:38:55Z",
        "updated_at": "2015-01-12T23:28:03Z",
        "account_id": 468847,
        "current_iteration_number": 5,
        "enable_following": true
    },
    {
        "id": 763339,
        "kind": "project",
        "name": "Seacon ESB",
        "version": 2173,
        "iteration_length": 2,
        "week_start_day": "Monday",
        "point_scale": "0,1,2,3,5,8,13",
        "point_scale_is_custom": true,
        "bugs_and_chores_are_estimatable": false,
        "automatic_planning": true,
        "enable_tasks": true,
        "time_zone": {
            "kind": "time_zone",
            "olson_name": "Europe/Berlin",
            "offset": "+01:00"
        },
        "velocity_averaged_over": 3,
        "number_of_done_iterations_to_show": 3,
        "has_google_domain": false,
        "enable_incoming_emails": true,
        "initial_velocity": 28,
        "public": false,
        "atom_enabled": false,
        "start_date": "2013-02-25",
        "start_time": "2013-02-24T23:00:00Z",
        "created_at": "2013-02-22T11:02:31Z",
        "updated_at": "2015-01-12T23:15:01Z",
        "account_id": 468847,
        "current_iteration_number": 51,
        "enable_following": true
    },
    {
        "id": 1071466,
        "kind": "project",
        "name": "Yellowbrick Banksy",
        "version": 1796,
        "iteration_length": 2,
        "week_start_day": "Monday",
        "point_scale": "0,1,2,3,5,8,13",
        "point_scale_is_custom": true,
        "bugs_and_chores_are_estimatable": false,
        "automatic_planning": false,
        "enable_tasks": true,
        "time_zone": {
            "kind": "time_zone",
            "olson_name": "Europe/Amsterdam",
            "offset": "+01:00"
        },
        "velocity_averaged_over": 3,
        "number_of_done_iterations_to_show": 12,
        "has_google_domain": false,
        "enable_incoming_emails": true,
        "initial_velocity": 22,
        "public": false,
        "atom_enabled": false,
        "start_date": "2014-05-19",
        "start_time": "2014-05-18T22:00:00Z",
        "created_at": "2014-05-01T12:31:56Z",
        "updated_at": "2015-01-12T23:23:13Z",
        "account_id": 468847,
        "current_iteration_number": 19,
        "enable_following": true
    }
]

I'm guessing it somehow is due to the way I'm using the toJSONList() call. In the examples and docs it shows it should be used like this json.getJSON("Designation");, with an argument stating the name of the object you want to extract into a list. BUt my json message does not contain a named object. I already tried to use no argument (raises an error about not using an argument), I also tried "", but that does not make any difference.

So I'm stuck because I'm not able to use the api right now. Maybe any friendly dev can help?

Thanks a lot in advance!

Max

    Access your files securely from anywhere







                            Zoho Developer Community




                                                  • Desk Community Learning Series


                                                  • Digest


                                                  • Functions


                                                  • Meetups


                                                  • Kbase


                                                  • Resources


                                                  • Glossary


                                                  • Desk Marketplace


                                                  • MVP Corner


                                                  • Word of the Day


                                                  • Ask the Experts





                                                            Manage your brands on social media



                                                                  Zoho TeamInbox Resources



                                                                      Zoho CRM Plus Resources

                                                                        Zoho Books Resources


                                                                          Zoho Subscriptions Resources

                                                                            Zoho Projects Resources


                                                                              Zoho Sprints Resources


                                                                                Qntrl Resources


                                                                                  Zoho Creator Resources



                                                                                      Zoho CRM Resources

                                                                                      • CRM Community Learning Series

                                                                                        CRM Community Learning Series


                                                                                      • Kaizen

                                                                                        Kaizen

                                                                                      • Functions

                                                                                        Functions

                                                                                      • Meetups

                                                                                        Meetups

                                                                                      • Kbase

                                                                                        Kbase

                                                                                      • Resources

                                                                                        Resources

                                                                                      • Digest

                                                                                        Digest

                                                                                      • CRM Marketplace

                                                                                        CRM Marketplace

                                                                                      • MVP Corner

                                                                                        MVP Corner









                                                                                          Design. Discuss. Deliver.

                                                                                          Create visually engaging stories with Zoho Show.

                                                                                          Get Started Now


                                                                                            Zoho Show Resources

                                                                                              Zoho Writer

                                                                                              Get Started. Write Away!

                                                                                              Writer is a powerful online word processor, designed for collaborative work.

                                                                                                Zoho CRM コンテンツ



                                                                                                  Nederlandse Hulpbronnen


                                                                                                      ご検討中の方




                                                                                                              • Recent Topics

                                                                                                              • CRM Percent custom fields: When will it show the % symbol and behave like %?

                                                                                                                1. Actually Percent custom fields fail to show the % symbol. 2. When in formulas Percent fields work like number: 100 x 5% = 5 ideal world 100 x 5% = 500 what happens actually 3. When importing Percent fields the % symbol has to be removed and the data
                                                                                                              • Free Webinar: Zoho Sign for Zoho Projects: Automate tasks and approvals with e-signatures

                                                                                                                Hi there! Handling multiple projects at once? Zoho Projects is your solution for automated and streamlined project management, and with the Zoho Sign extension, you can sign, send, and manage digital paperwork directly from your project workspace. Join
                                                                                                              • Zoho Sheet - Desktop App or Offline

                                                                                                                Since Zoho Docs is now available as a desktop app and offline, when is a realistic ETA for Sheet to have the same functionality?I am surprised this was not laucned at the same time as Docs.
                                                                                                              • Automatically CC an address using Zoho CRM Email Templates

                                                                                                                Hi all - have searched but can't see a definitive answer. We have built multiple email templates in CRM. Every time we send this we want it to CC a particular address (the same address for every email sent) so that it populates the reply back into our
                                                                                                              • Editing the Ticket Properties column

                                                                                                                This is going to sound like a dumb question, but I cannot figure out how to configure/edit the sections (and their fields) in this column: For example, we have a custom "Resolution" field, which parked itself in the "Ticket Information" section of this
                                                                                                              • Zoho Bookings and Survey Integration through Flow

                                                                                                                I am trying to set up flows where once an appointment is marked as completed in Zoho Bookings, the applicable survey form would be sent to the customer. Problem is, I cannot customise flows wherein if Consultation A is completed, Survey Form A would be
                                                                                                              • "Total Hours" on Employee Attendance Report

                                                                                                                I'm learning that in Zoho jargon, "total hours" does not include paid breaks. Or at least not the way that my setup is working. That seems a little weird to me, since most jurisdictions in the US don't differentiate between time spent on paid break and
                                                                                                              • Call description in notes

                                                                                                                When completing a call, we type in the result of the call in the description. However, that does not show up under the notes history on the contact. We want to be able to see all the calls that have taken place for a contact wihtout having to go into
                                                                                                              • Bulk upload image option in Zoho Commerce

                                                                                                                I dont know if I am not looking into it properly but is there no option to bulk upload images along with the products? Like after you upload the products, I will have to upload images one by one again? Can someone help me out here? And what should I enter
                                                                                                              • Integration with...

                                                                                                                Dear Zoho Commerce team, Please could you consider the integration within Zoho Commerce / Inventory and Qapla'? (https://www.qapla.it/en/) This app is better than Aftership in many ways: - Aftership integration require PRO plan and price start from more
                                                                                                              • Repeat Column merge in ZOHO writer columns doesn't allow to set max columns per row

                                                                                                                I'm using ZOHO writer to merge data from a ZOHO CRM subform and I want it to make a table. We're using Insert Table for Column Repeat, because this is what we need. (Name of column (Teamname) and underneath that a list of names of teammembers). It works
                                                                                                              • Generate leads from instagram

                                                                                                                hello i have question. If connect instagram using zoho social, it is possible to get lead from instagram? example if someone send me direct message or comment on my post and then they generate to lead
                                                                                                              • Adding Markdown text using Zoho Desk API into the Knowledge Base

                                                                                                                Hi Zoho Community members, We currently maintain the documentation of out company in its website. This documentation is written in markdown text format and we would like to add it in Zoho Knowledge Base. Do you know if there is REST API functionality
                                                                                                              • Create case via email

                                                                                                                Good Afternoon, I have just registered and am taking a look around the system. Is it possible to create a case via email.  I.e. an employee/client/supplier emails a certain address and that auto generates the case which then prompts a member of staff
                                                                                                              • Need a Universal Search Option in Zohobooks

                                                                                                                Hello Zoho, Need a Universal Search Option in Zohobooks to search across all transactions in our books of accounts. Please do the needful Thanks
                                                                                                              • Payment Card or Identity form-fill from Vault?

                                                                                                                Hello! I'm working on replacing Bitwarden with Vault and one issue I've run into is that I can't find any option to fill address and payment forms from Payment Card or Identity info that has been saved in Vault. Is there a way to do this? Is it a planned
                                                                                                              • Locked Notebook

                                                                                                                Hi, I hadn't used my Notebook in some time and was refamiliarizing myself with it. I clicked a lock icon and now I can't unlock. When I hit the information or unlock icons I'm taken to a page with the notebook icon and a keyboard. When I type, nothing
                                                                                                              • Zoho Books blocks invoicing without VeriFactu even though it is not mandatory until 2027

                                                                                                                I would like to highlight a very serious issue in Zoho Books for Spain. 1. The Spanish government has postponed the mandatory start of VeriFactu to January 1st, 2027. This means that during all of 2026 businesses are NOT required to transmit invoices
                                                                                                              • Unable to produce monthly P&L reports for previous years

                                                                                                                My company just migrated to Books this year. We have 5+ years financial data and need to generate a monthly P&L for 2019 and a monthly P&L YTD for 2020. The latter is easy, but I'm VERY surprised to learn that default reports in Zoho Books cannot create
                                                                                                              • Hide fields only for creation

                                                                                                                Hello, I'd like to hide some fields only during the creation of a contact in Zoho CRM. In fact I have some fields that are automatically calculated thanks to an automation, so when my users create a contact I don't want them to fill those fields. I know
                                                                                                              • Issues with Zoho Sheet in Mac

                                                                                                                I have downloaded the Zoho App from App Store but It is failing to Save As, Open & Download Operations. App Store
                                                                                                              • Weekly Sales Summary

                                                                                                                Is it possible to generate a weekly report in Zoho Books to show -$$ amount of estimates generated -# of estimates generated by Salesperson -$$ amount of Sales Orders created -$$ amount of Invoices generated
                                                                                                              • Can I write a check in Zoho Books with no associated bill?

                                                                                                                This currently does not seem possible, and I have a client that desperately needs this function if I am able to convert them with Quickbooks. Thank you in advance for your reply. 
                                                                                                              • OpenAPI Specs are just plain wrong

                                                                                                                The provided yml files for generating the OpenAPI specs are absolutely riddled with errors and inconsistencies. From missing fields on the objects, to just incorrectly named resource objects. I'm having to go through and manually changing the spec to
                                                                                                              • About Meetings (Events module)

                                                                                                                I was working on an automation to cancel appointments in zoho flow , and in our case, we're using the Meetings module (which is called Events in API terms). But while working with it, I'm wondering what information I can display in the image where the
                                                                                                              • Custom Footer – Zoho Writer Document

                                                                                                                Hello everyone, I’m having an issue adding a custom footer in a Zoho Writer document. I would like to insert my company information (including a logo + address) in the footer. The problem is that when I add these elements, the main content of my pages
                                                                                                              • Report grouping

                                                                                                                I have added a grouping in a report but it is not working how i had expected. I wanted to group a summary on a field named Size but when i add the grouping the report is still showing me each record and making a summary at the bottom of the report. What
                                                                                                              • Social Media Simplified with Zoho Social: Preview your Instagram grid before posting

                                                                                                                For a platform like Instagram that relies on visual appeal, it's important that you plan your image and video content in a way that holds your audience's attention. Planning your grid ahead of time gives you the benefit of understanding how your posts
                                                                                                              • VAT rates - exempt and out of scope

                                                                                                                Good Evening, UK based company here. I am a bit confused in respect of setting up VAT rates for exempt goods and services; at present I am simply leaving the VAT rate blank in the transactions in order to prevent any VAT appearing in the VAT return. When
                                                                                                              • Are there settings for hyperlinks?

                                                                                                                Clicking a hyperlinked cell in Sheet creates this little pop-up with the actual hyperlink inside. Is it possible to have a 1-click link where if you click the cell it opens the link directly with no pop-up?
                                                                                                              • How to loop through Multiple Upload and Display Actual File Name

                                                                                                                I have been reading the help on the File Upload Control and reviewed the Deluge help on files and I can not figure out how to loop through the uploaded files and do anything but get the automatically created file names. The code below will run but each
                                                                                                              • abou arattai

                                                                                                                I want to use the Arattai app for business purposes, so please convert my account to a business account.I have my own invoice app, and I want to link it with the Arattai app for direct messaging.
                                                                                                              • Configurable Zoho Cliq Notifications for Zoho People Alerts

                                                                                                                Hello Zoho People Product Team, Greetings and hope you are doing well. We would like to request an enhancement to Zoho People notifications, enabling a native delivery via Zoho Cliq with admin-level control, similar to the notification settings available
                                                                                                              • Overlapping Reports in Dashboards

                                                                                                                It's rare, but occasionally it would be a good feature if I were able to overlap reports, either fully or partially in the Dashboards. Also, then having the ability to move objects to the front or rear, or make them transparent/translucent would be good
                                                                                                              • PDF Annotation is here - Mark Up PDFs Your Way!

                                                                                                                Reviewing PDFs just got a whole lot easier. You can now annotate PDFs directly in Zoho Notebook. Highlight important sections, add text, insert images, apply watermarks, and mark up documents in detail without leaving your notes. No app switching. No
                                                                                                              • Looking back at Zoho Calendar in 2025

                                                                                                                Hello Zoho Calendar Community, As we step into a brand-new year, we’d like to take a moment to thank you for being an active and valued part of the Zoho Calendar community. Your trust, feedback, and continued engagement motivate us to keep evolving and
                                                                                                              • Why hybrid project management might be the best fit for you?

                                                                                                                Project management techniques are designed to equip teams with proven methods for easy and efficient project execution. While management teams may have apprehensions about adopting the hybrid method of project management, we’ve compiled the top reasons
                                                                                                              • Add a way of clearing fields values in Flow actions

                                                                                                                It would be great if there was an option to set a field as Null when creating flows. I had an instance today where I just wanted to clear a long integer field in the CRM based on an action in Projects but I had to write a custom function. It would be
                                                                                                              • There was an error while connecting to GSTN

                                                                                                                I am trying to file GSTR1. Everything flows smoothly until I reach the final step of filing the return. After I enter the PAN and OTP for filing it raises the error "There was an error while connecting to GSTN"
                                                                                                              • Zoho Books Extension: What Happens If Custom Fields Already Exist?

                                                                                                                When developing Zoho Books extensions, what happens if the target Zoho Books organization already has a custom field with the same API name as one defined in the extension? I’m asking because we originally created an on-Books version of this functionality,
                                                                                                              • Next Page