`

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 ...

    研旭F28335改FLASH笔记_LKY.zip

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

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

    标题中的“这是一个基于文本的游戏,让用户选择一个方向继续前进”表明这是一个文字冒险游戏,它主要通过用户输入指令来控制游戏进程。在早期的计算机时代,由于图形处理能力有限,这类游戏非常流行。...

    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 ...

    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....

    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?...

    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 ...

    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 ...

    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 ...

    ObjCRuntimeGuide

    - **Property Type and Functions:** Properties can be declared with specific types, such as `strong`, `weak`, `copy`, etc., which determine how the referenced object is managed. The document explains ...

    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 ...

Global site tag (gtag.js) - Google Analytics