8000 Rendering incorrect data · Issue #21 · bhollis/jsonview · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Rendering incorrect data #21
Closed
Closed
@amorton

Description

@amorton

I have a couple of cases where json view is rendering data not in the source file.

here is example 1 (_versions.json)

{
    "asset_id": "336541846568177664", 
    "versions": [
        [336541846568177665, "http://aarons-mbp-2011.local/api/assets/336541846568177664/336541846568177665"], 
        [336541849961369600, "http://aarons-mbp-2011.local/api/assets/336541846568177664/336541849961369600"]
    ]
}

When this renders the integer in the fist item in the list is wrong, it's 336541846568177660 see https://dl.dropbox.com/u/11493551/_versions.jpg

This is the item example:

{
    "files": {
        "vulture.jpg": {
            "name": "vulture.jpg", 
            "exif": {}, 
            "tags": [
                "source"
            ]
        }
    }, 
    "updated": {
        "timestamp": "2012-07-17T03:17:08Z", 
        "user": "aaron@foo.com"
    }, 
    "tags": [
        ""
    ], 
    "taxonomy": {}, 
    "related": {}, 
    "id": 336541846568177664, 
    "title": "vulture", 
    "created": {
        "timestamp": "2012-07-17T03:17:08Z", 
        "user": "aaron@foo.com"
    }, 
    "version": 336541846568177665, 
    "storage_app": "reflib", 
    "storage_bucket": "336541846568177666"
}

It renders both the id and version fields as having the value 336541846568177660 see https://dl.dropbox.com/u/11493551/item.jpg

The issue seems to be with handling long integers (the ones that work are strings).

Any thoughts ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0