Store dependencies as a json array

Avoid a weird encoding scheme which probably isn't all that necessary. Also
allows for more extensibility (such as adding the target field!)