I'm trying to use the ArcGIS Flex SDK for a mobile app that will sometimes be used in environments with no connectivity. I've figured out that layers can be brought in locally by saving the JSON response given by the server and simply using the local file as the layer URL.
Is there a toolbox, plugin, or .py script that will take existing features or shapefiles and convert them to the ESRI JSON format that the server uses? I've tried esri2open, but that only does GeoJSON and a generic JSON object, and I'd prefer to have something that automatically gives the exact same JSON structure as the REST services would when loading an online map. Ideally, it would be something that could run from the Arc desktop without the additional steps of publishing a service and downloading the response. Does something like this exist? I've noticed that 10.2 may have that capability, but for now I'm stuck with 10.1.