GithubHelp home page GithubHelp logo

Comments (6)

blacktop avatar blacktop commented on June 20, 2024

What is the contents of the output file look like?

from ipsw.

AustinTamb avatar AustinTamb commented on June 20, 2024
Problem string:
[  <-- Bad, this is in the middle of the JSON.
    {
        "cache_file_offset": 1692663784,
        "cache_vm_address": 8135114728,
        "target": 8049909977,
        "pointer": {
            "value": 1607459033,
            "next": 1
        }
    },
    {
        "cache_file_offset": 1692663792,
        "cache_vm_address": 8135114736,
        "target": 8049910296,
        "pointer": {
            "value": 1607459352,
            "next": 1
        }
    },
    {
        "cache_file_offset": 1692663800,
        "cache_vm_address": 8135114744,
        "target": 8049909983,
        "pointer": {
            "value": 1607459039,
            "next": 0
        }
    }
] <-- Bad
[ <-- Bad
    {
        "cache_file_offset": 1692680296,
        "cache_vm_address": 8168685672,
        "target": 6443202716,
        "pointer": {
            "value": 751772,
            "next": 2
        }
    },
    {
        "cache_file_offset": 1692680312,
        "cache_vm_address": 8168685688,
        "target": 8267500200,
        "pointer": {
            "value": 1825049256,
            "next": 2
        },
        "symbol": "__OBJC_$_PROTOCOL_INSTANCE_METHODS_NSObject"
    },
    {
        "cache_file_offset": 1692680328,
        "cache_vm_address": 8168685704,
        "target": 8267500664,
        "pointer": {
            "value": 1825049720,
            "next": 2
        },
        "symbol": "__OBJC_$_PROTOCOL_INSTANCE_METHODS_OPT_NSObject"
    },
    {
        "cache_file_offset": 1692680344,
        "cache_vm_address": 8168685720,
        "target": 8267500696,
        "pointer": {
            "value": 1825049752,
            "next": 2
        },
        "symbol": "__OBJC_$_PROP_LIST_NSObject"
    }

from ipsw.

blacktop avatar blacktop commented on June 20, 2024

So it's multiline JSON, where the ] [ should be a boundary of the JSONL line.

This is because each line goes with a different DSC mapping. I usually filter the results w/ jq which can handle multi-list JSON just fine.

So you'd either include a preprocessing step to break it into several JSON files OR I could create multiple JSON files when the --output flag is used in ipsw

from ipsw.

AustinTamb avatar AustinTamb commented on June 20, 2024

I mean, knowing it's JSONL makes this much less of a problem. I think maybe updating the help message to specifying the output is in JSONL format would probably be sufficient.

from ipsw.

blacktop avatar blacktop commented on June 20, 2024

I pushed a commit that now names the file .jsonl to notify people that it's not normal JSON

from ipsw.

blacktop avatar blacktop commented on June 20, 2024

is in latest release

from ipsw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.