Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JOLT split flat object into key/value array

[
  { 
    "operation": "shift",
    "spec": {
      "*": {
        "$": "[#2].key",
        "@": "[#2].value"
      }
    }
  }
 ]
 
PREVIOUS NEXT
Tagged: #JOLT #split #flat #object #array
ADD COMMENT
Topic
Name
3+7 =