archieml-js icon indicating copy to clipboard operation
archieml-js copied to clipboard

Is there a json to AML method?

Open yanofsky opened this issue 10 years ago • 1 comments

Is there a archieml-js method that I'm missing that can convert json into AML?

My use case involves having a server that retrieves a AML google doc parses it and returns json just like examples/google_drive.js and an application that requests that json.

I want the application to be able to keep a cached local copy of that document in an AML format for situations where Google Drive goes down or connectivity is limited.

yanofsky avatar Oct 29 '15 18:10 yanofsky

Zombie answering this question because I was looking for this at one point too — but if you're working with the script provided in google_drive.js you have access to that with the parsedText variable, which is what is passed to archieml.load. Not the same thing as being able to reverse the conversion, but you could add a step that saves that pre-processed version somewhere as your local copy.

rdmurphy avatar Jul 23 '17 21:07 rdmurphy