Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-2460

Using Spin I can manipulate a JSON / List object

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Fixed
    • L3 - Default
    • 7.2.0, 7.2.0-alpha4
    • None
    • spin

    Description

      AT:

      • I can append to the end of a list

      SpinJsonObject o = JSON("

      {\"a\": [ ] }

      ");
      o.prop(a)
      .append("1")
      .append(JSON("

      { ... }

      "))

      =>> { a: [ 1,

      {...}

      ] }

      • I can insert at a specific position:

      SpinJsonObject o = JSON("

      {\"a\": [1, 2 ] }

      ");
      o.prop("a").insertAt(1, "3") =>

      { a: [1,3,2] }

      o.prop("a").insertAt(-1, "3") =>

      { a: [1,2,3] }
      • I can insert after/before a specific value:

      SpinJsonObject o = JSON("

      {\"a\": [1, 2 ] }

      ");
      o.prop("a").insertAfter(1, "3") =>

      { a: [1,3,2] }

      o.prop("a").insertBefore(1, "3") =>

      { a: [3,1,2] }
      • I can use equivalent remove() methods

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Activity

            People

              matthijs.burke Matthijs
              meyer Daniel Meyer
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Salesforce