use explicit std::optional<json_ref> in parse
use explicit std::optional<json_ref> in parse

Summary: Step towards preventing nullptr from inhabiting json_ref.

Reviewed By: kmancini

Differential Revision: D36021023

fbshipit-source-id: e73e9e117a1a8f947bf048898d9efcacf3a19bc5

facebook/watchman,facebook/watchman,facebook/watchman,facebook/watchman,facebook/watchman,facebook/watchman,facebook/watchman,facebook/watchman,facebook/watchman