Skip to content

ll.JsonGetValue and ll.JsonSetValue still use 0-based indexing #56

@tapple

Description

@tapple
print(ll.JsonGetValue('["a","b","c"]', {1})) -- "b"; expected: "a"
print(ll.JsonSetValue('["a","b","c"]', {1}, "x")) --  ["a","x","c"]; expected:  ["x","b","c"]

Just writing a reminder issue for an existing TODO:

https://github.com/secondlife/lsl-definitions/blob/2f60903adf78ad6b1474814e90255971dc367300/lsl_definitions.yaml#L8113

          # TODO: The specifiers can contain integers, which should be array indices
          # But we don't support that in the bindgen yet.
          # index-semantics: true

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions