Optional json net

@cocowalla what do you think of this?