`

property referenced in indexed property path is neither an array nor a list nor

阅读更多

http://stackoverflow.com/questions/5900840/post-nested-object-to-spring-mvc-controller-using-json

 

http://www.bmchild.com/2014/02/spring-mvc-3-property-referenced-in.html

 

 

(function($){// copy from jquery.jsvar r20 =/%20/g,
  rbracket =/\[\]$/;

  $.extend({
    customParam:function( a ){var s =[],
        add =function( key, value ){// If value is a function, invoke it and return its value
          value = jQuery.isFunction( value )? value(): value;
          s[ s.length ]= encodeURIComponent( key )+"="+ encodeURIComponent( value );};// If an array was passed in, assume that it is an array of form elements.if( jQuery.isArray( a )||( a.jquery &&!jQuery.isPlainObject( a ))){// Serialize the form elements
        jQuery.each( a,function(){
          add(this.name,this.value );});}else{for(var prefix in a ){
          buildParams( prefix, a[ prefix ], add );}}// Return the resulting serializationreturn s.join("&").replace( r20,"+");}});/* private method*/function buildParams( prefix, obj, add ){if( jQuery.isArray( obj )){// Serialize array item.
    jQuery.each( obj,function( i, v ){if(rbracket.test( prefix )){// Treat each array item as a scalar.
        add( prefix, v );}else{
        buildParams( prefix +"["+(typeof v ==="object"|| jQuery.isArray(v)? i :"")+"]", v, add );}});}elseif(obj !=null&&typeof obj ==="object"){// Serialize object item.for(var name in obj ){
      buildParams( prefix +"."+ name, obj[ name ], add );}}else{// Serialize scalar item.
    add( prefix, obj );}};})(jQuery);



You can try something like this:

vendor['emails[0].emailAddress']="abc123@abc.com";
vendor['emails[0].flags']=3;
vendor['emails[1].emailAddress']="xyz@abc.com";
vendor['emails[1].flags']=3;

:)

分享到:
评论

相关推荐

    微软内部资料-SQL性能优化5

     If the table is a heap (in other words, it has no clustered index), the bookmark is a RID, which is an actual row locator in the form File#:Page#:Slot#. Finding Rows with a NC Index on a Heap ...

    This is a text based game that lets the user select a direct

    This is a text based game that lets the user select a direction to procced on to.

    研旭F28335改FLASH笔记_LKY.zip

    基于研旭F28335历程将代码烧写入FLASH的步骤,之前使用研旭历程直接烧写FLASH出现了一些错误,如下unresolved symbol _RamfuncsLoadStart, first referenced in XX unresolved symbol _RamfuncsLoadEnd, first ...

    shankar quantumn

    Unsurpassed coverage of path integrals and their relevance in contemporary physics The requisite text for advanced undergraduate- and graduate-level students, Principles of Quantum Mechanics, Second ...

    Senfore_DragDrop_v4.1

    This is believed to be a bug in the Windows clipboard and a work around hasn't been found yet. * Asynchronous targets appears to be broken in the current release. * When TDropFileTarget....

    Graphing.Data.with.R.An.Introduction.1491922613

    Complex relationships are often more easily grasped by looking at a picture, or a graph, than they might be if one tried to absorb the nuances in a verbal description or discern the relationships in ...

    can't find referenced pointcut

    spring-framework-3.1.1.RELEASE jdk1.7 环境下 can't find referenced pointcut 问题解决 换了对应的jar文件即可 aspectjrt.jar aspectj-1.6.6.jar aspectjweaver.jar

    微软内部资料-SQL性能优化3

    Intent Lock is the term used to mean placing a marker in a higher-level lock queue. The type of intent lock can also be called the multigranular lock mode. An intent lock indicates that SQL Server ...

    Build Report Tool 3.0.19.rar

    Those are the prefabs that were used in scenes but are not in a Resources folder, nor referenced as a variable. === Size Readings === Why is the build size larger when shown in Windows Explorer?...

    BURNINTEST--硬件检测工具

    Here is a summary of all changes that have been made in each version of BurnInTest. Release 5.3 build 1035 revision 4 WIN32 release 10 November 2008 - Lenovo China specific build. Lenovo system ...

    EhLib5.0.13 最新的ehlib源码

    property for automatic filling a list in DropDownBox of the subtitle filter cell. TDataDriverEh component carry out two tasks: Delivers data to TMemTableEh. Processes changed records of ...

    EhLib 8.0 Build 8.0.023 Pro Edition FullSource for D7-XE8

    property for automatic filling a list in DropDownBox of the subtitle filter cell. TDataDriverEh component carry out two tasks: Delivers data to TMemTableEh. Processes changed records of ...

    CE中文版-启点CE过NP中文.exe

    Disassembler/Debug: Fixed the address that is being edited when a breakpoint hits while editing an instruction Assembler: Fixed assembling reg*2/4/8+unquotedsymbol Plugin: Fixed the SDK for C plugins ...

    EhLib 6.3 Build 6.3.176 Russian version. Full source included.

    property for automatic filling a list in DropDownBox of the subtitle filter cell. TDataDriverEh component carry out two tasks: Delivers data to TMemTableEh. Processes changed records of ...

    STD-A0084_GeneralElectricalHardwareRequirementsandGuidelines

    The word "shall" is to be used in the following ways: To state a binding requirement on the E/E component or the interfaces which comprise the E/E component, which is verifiable by external ...

    EhLib 9.1.024

    property for automatic filling a list in DropDownBox of the subtitle filter cell. TDataDriverEh component carry out two tasks: Delivers data to TMemTableEh. Processes changed records of ...

    机器学习之Iris数据集

    Fisher's paper is a classic in the field and is referenced frequently to this day. (See Duda & Hart, for example.) The data set contains 3 classes of 50 instances each, where each class refers to a ...

    Cef代码使用说明

    For a complete list of threads see the cef_thread_id_t enumeration. The browser process for example contains the following commonly-referenced threads: TID_UI thread is the main thread in the ...

    SymbolTypeViewer_1_0_0_6

    sail and visualize in a detailed way the types and their members in the form of tree structure easily find the unused areas in the structures (padding). These areas are theoretically usable to put ...

    鸢尾花数据

    Fisher's paper is a classic in the field and is referenced frequently to this day. (See Duda & Hart, for example.) The data set contains 3 classes of 50 instances each, where each class refers to ...

Global site tag (gtag.js) - Google Analytics