mirror of
https://github.com/flynx/serialize.js.git
synced 2026-07-10 19:20:56 +00:00
tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
aea2cbe539
commit
840046c1d9
25
serialize.js
25
serialize.js
@ -14,12 +14,25 @@
|
|||||||
* indexes)...
|
* indexes)...
|
||||||
* a different path format would suit both tasks and make things more
|
* a different path format would suit both tasks and make things more
|
||||||
* universal:
|
* universal:
|
||||||
* [1, 'a', ['map', 5, 0], ['set', 3]]
|
* Current:
|
||||||
* \ \ +---------+-+ +------+-+
|
* [1, 'a', 5, 0, 3]
|
||||||
* \ \ \ +------ Set index
|
* \ \ +-++ +---------------- Set index (from context)
|
||||||
* \ \ +----------------- Map index
|
* \ \ +------------------- Map index (from context)
|
||||||
* \ +------------------------------ Objecct index (string)
|
* \ +------------------------ Object key (string)
|
||||||
* +--------------------------------- Array index (number)
|
* +--------------------------- Array index (from context)
|
||||||
|
* Proposed:
|
||||||
|
* [1, 'a', ['map', 5, 0], ['set', 3]]
|
||||||
|
* \ \ +---------+-+ +------+-+
|
||||||
|
* \ \ \ +--- Set index
|
||||||
|
* \ \ +-------------- Map index
|
||||||
|
* \ +--------------------------- Object key (string)
|
||||||
|
* +------------------------------ Array index (number)
|
||||||
|
* And/or:
|
||||||
|
* [1, ['object', 3], ['map', 5, 0], ['set', 3]]
|
||||||
|
* +---------+-+
|
||||||
|
* +----- Object attr index
|
||||||
|
*
|
||||||
|
*
|
||||||
*
|
*
|
||||||
**********************************************************************/
|
**********************************************************************/
|
||||||
((typeof define)[0]=='u'?function(f){module.exports=f(require)}:define)
|
((typeof define)[0]=='u'?function(f){module.exports=f(require)}:define)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user