cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-10308) Unable to parse multi dimensional arrays with more than 2 levels
Date Thu, 07 Jan 2016 05:26:39 GMT

    [ https://issues.apache.org/jira/browse/CB-10308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15086834#comment-15086834
] 

ASF GitHub Bot commented on CB-10308:
-------------------------------------

Github user sahilrulzs commented on the pull request:

    https://github.com/apache/cordova-osx/pull/29#issuecomment-169554517
  
    Here you go: https://issues.apache.org/jira/browse/CB-10308


> Unable to parse multi dimensional arrays with more than 2 levels
> ----------------------------------------------------------------
>
>                 Key: CB-10308
>                 URL: https://issues.apache.org/jira/browse/CB-10308
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: OSX
>    Affects Versions: Master
>            Reporter: Sahil Bhardwaj
>            Assignee: Tobias Bocanegra
>              Labels: OSX, easyfix
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> This bug entry corresponds to pull request https://github.com/apache/cordova-osx/pull/29
> *Detail:*
> As we send arguments with commands to objc from javascript, current implementation "convertWebScriptObjectToNSArray"
and "convertWebScriptObjectToNSDictionary" converts Javascript objects to NSArray/NSDictionary
but it doesn't parse the children at 2nd level and show zero elements in there.
> *Input:*
> x = [{ a : { b: { c : "Hi" } } }]
> *Output:*
> x = [{ a : { b :  { } } }]
> *Solution:*
> Replace the current method with "[[webScriptObject JSValue] toArray]" which a native
method of apple webkit solves the problem.
> Please give a look at pull request
> https://github.com/apache/cordova-osx/pull/29



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message