Skip to content
orange checkmark
Grants full AT&T API Platform access and allows you to register more apps.
orange checkmark
Includes production access to Messaging (including In-App).
Please note that the previous Terms & Conditions have changed. To continue using your account without interruption, your organization must complete the steps outlined below:

Steps to update your AT&T API Access Subscription:

  1. Sign new Terms & Conditions.
  2. Provide a valid credit card.
  3. Review and Submit.

AT&T Developer Program

AT&T Developer
  • Products
  • Events
  • Resources
  • Blog
  • Sign In

Forums

  1. Forums
  2. AT&T Flow Designer
  3. XML Node (XML -to JSON ) for a document beyond 2 deep

AT&T Flow Designer - XML Node (XML -to JSON ) for a document beyond 2 deep

Reply to Thread
by dv597p

7 Posts
1 Comments
Joined 2017-03-31
XML Node (XML -to JSON ) for a document beyond 2 deep
10.23.2017 09:49 AM

Hi node dev team,

 

When trying to convert the following xml to JSON using XML node – the object is not converted beyond the “Yesterday”

 

<?xml version="1.0" encoding="utf-8" standalone="no"?>

<data>

<date>9/6/2017  12:00:00AM</date>

<statistics>

     <yesterday>

<dayofweek>Tuesday</dayofweek>

<yesterdaydate>9/5/2017</yesterdaydate>

<yesterdaypax>109746</yesterdaypax>

<yesterdayflts>1008</yesterdayflts>

<yesterdaycargo>193</yesterdaycargo>

<yesterdaytotalflts>1008</yesterdaytotalflts>

   </yesterday>  

</statistics>

</data>

 

 

23 Oct 12:28:49DEBUG{"date":["9/6/2017 12:00:00AM"],"statistics":[{"yesterday":[{"dayofweek":["Tuesday"],"yesterdaydate":["9/5/2017"],"yesterdaypax":["109746"],"yesterdayflts":["1008"],"yesterdaycargo":["193"],"yesterdaytotalflts":["1008"]}]}]}

23 Oct 12:28:49ERRORTypeError: Cannot read property 'toString' of undefined

 

 

Project: https://flow.att.io/dhiraj/scoc-platform-300317-134554/edit/master/flow.json

Tab: MD-XML-AIRPORT

 

I’m also opening a support ticket on this one.

 

Thanks,

Dhiraj

 

 

by dv597p

7 Posts
1 Comments
Joined 2017-03-31

Re: XML Node (XML -to JSON ) for a document beyond 2 deep
10.23.2017 02:40 PM
Using the Array notation solved the issue,
by ms640x

0 Posts
9 Comments
Joined 2017-04-18

Re: XML Node (XML -to JSON ) for a document beyond 2 deep
10.24.2017 03:48 AM

Thank you Dhiraj for this input

A change request has been opened in github
https://github.com/iot-platform/Customers/issues/265

Regards,
Meni

Please confirm that you want to flag this content as inappropriate.
Please confirm that you want to delete this content.
  • APIS & TOOLS
    • AT&T Video Optimizer
  • ADDITIONAL RESOURCES
    • Futurist Reports
    • Technical Library
  • SUPPORT
    • Contact Us
    • Forums
    • FAQs
    • Twitter
  • AT&T Developer Program on Github
  • AT&T Developer Program on Facebook
  • AT&T Developer Program on Twitter
AT&T Logo

Terms of Use   Privacy Policy
©2019 AT&T Intellectual Property. All rights reserved

AT&T, the AT&T logo and all other AT&T marks contained herein are trademark of AT&T Intellectual Property and/or AT&T affiliated companies.